summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-12-22 07:21:40 +0100
committerPeter Eisentraut <peter_e@gmx.net>2018-12-22 07:26:45 +0100
commitffcd98c7fcfb2ed4ef9069591c06d3748669941c (patch)
treef401feabe3e676608f352a652cbc1b791a34bf65
parent1b02807457318fa61cb564b101669f82e1b7be23 (diff)
Fix ancient compiler warnings and typos in !HAVE_SYMLINK code
This has never been correct since this code was introduced.
-rw-r--r--src/bin/initdb/initdb.c2
-rw-r--r--src/bin/pg_basebackup/pg_basebackup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 66e3c84eb58..d303ebb98b5 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -3206,7 +3206,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 bb098202ad8..ef1b63bc7be 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -2280,7 +2280,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);