]> granicus.if.org Git - postgresql/commitdiff
Fix ancient compiler warnings and typos in !HAVE_SYMLINK code
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 22 Dec 2018 06:21:40 +0000 (07:21 +0100)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 22 Dec 2018 06:26:45 +0000 (07:26 +0100)
This has never been correct since this code was introduced.

src/bin/initdb/initdb.c
src/bin/pg_basebackup/pg_basebackup.c

index 66e3c84eb58addbbedfd0eb3cd36d52294234b18..d303ebb98b5edc24d4fc504e3499679da605bae9 100644 (file)
@@ -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
        }
index bb098202ad8c0305f16615afed6fa9b037b4e4d3..ef1b63bc7be2d41b67e6518a3685005fb9438b73 100644 (file)
@@ -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);