From: Peter Eisentraut Date: Sat, 22 Dec 2018 06:21:40 +0000 (+0100) Subject: Fix ancient compiler warnings and typos in !HAVE_SYMLINK code X-Git-Tag: REL9_5_16~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8717736670867b2e9c4e1ad841d5d0ea9e3c2965;p=postgresql Fix ancient compiler warnings and typos in !HAVE_SYMLINK code This has never been correct since this code was introduced. --- diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 89a6b0da09..485a4024d5 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -3260,7 +3260,7 @@ create_xlog_or_symlink(void) exit_nicely(); } #else - fprintf(stderr, _("%s: symlinks are not supported on this platform")); + fprintf(stderr, _("%s: symlinks are not supported on this platform\n"), progname); exit_nicely(); #endif } diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 888ef43ed0..d9801edd76 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -2247,7 +2247,7 @@ main(int argc, char **argv) exit(1); } #else - fprintf(stderr, _("%s: symlinks are not supported on this platform\n")); + fprintf(stderr, _("%s: symlinks are not supported on this platform\n"), progname); exit(1); #endif free(linkloc);