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

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

index 211a96380ef367dd6e7e0e3b09542ecee4278848..017c11bc948aeb119725738259c031205817c1f8 100644 (file)
@@ -2942,7 +2942,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 85c3812dd11bb67124687784ffd569df0b2847aa..e4304c4a90a1c1386e86376f2c793ef576bc57cf 100644 (file)
@@ -2588,7 +2588,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);