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

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

index a9bbc8985ea44e5bd21c5fb09c2b5dd3bb7b1636..4ce50c307759ad0be5a5fc770a4e8b3261d6d5b5 100644 (file)
@@ -2918,7 +2918,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 20c7a830782619df418827471add8efb8d693b47..ba13806276831d01678e855a8a0851be0029ef7e 100644 (file)
@@ -2523,7 +2523,7 @@ main(int argc, char **argv)
                        disconnect_and_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);
                disconnect_and_exit(1);
 #endif
                free(linkloc);