]> 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:11 +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 89a6b0da09bc1aad57a466ed8856d01d47f5ecb9..485a4024d507c49f7c41fb28a95cedd2bce6a08a 100644 (file)
@@ -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
        }
index 888ef43ed0447d9942327087f4fa989e7b8c6440..d9801edd76038794c9c7f1e33999f5c8299f1633 100644 (file)
@@ -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);