]> 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:27:21 +0000 (07:27 +0100)
This has never been correct since this code was introduced.

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

index fb16897adf0965ad2af83a218a3ef0cc3e11581c..1d4546eeafb3a202d6bc3abc1a15eea625e3f537 100644 (file)
@@ -3422,7 +3422,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 7d6c45b55daef4f802766ee57e86c492c889b671..d8cd342ae8a659b936b6545956442ef5f76b3ac0 100644 (file)
@@ -2248,7 +2248,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);