Fix ancient compiler warnings and typos in !HAVE_SYMLINK code
authorPeter Eisentraut
Sat, 22 Dec 2018 06:21:40 +0000 (07:21 +0100)
committerPeter Eisentraut
Sat, 22 Dec 2018 06:25:43 +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 a96e08d01233b2662b2aaee3fbd93b069a3b369e..c7c9270f6c3577342cb1527336f4e5b597e85a9e 100644 (file)
@@ -2813,7 +2813,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 a0e922b3cb607b83898fc0ec6c2196095b3ea861..33c1d4efe3697b73a89d32b64341ed33ed57d636 100644 (file)
@@ -2430,7 +2430,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);