strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- pg_log_error("The program \"postgres\" is needed by %s but was not found in the\n"
+ pg_log_error("The program \"%s\" is needed by %s but was not found in the\n"
"same directory as \"%s\".\n"
"Check your installation.",
- progname, full_path);
+ "postgres", progname, full_path);
else
- pg_log_error("The program \"postgres\" was found by \"%s\"\n"
+ pg_log_error("The program \"%s\" was found by \"%s\"\n"
"but was not the same version as %s.\n"
"Check your installation.",
- full_path, progname);
+ "postgres", full_path, progname);
exit(1);
}
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- write_stderr(_("The program \"%s\" is needed by %s "
- "but was not found in the\n"
+ write_stderr(_("The program \"%s\" is needed by %s but was not found in the\n"
"same directory as \"%s\".\n"
"Check your installation.\n"),
target, progname, full_path);
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- pg_log_error("The program \"pg_dump\" is needed by %s but was not found in the\n"
+ pg_log_error("The program \"%s\" is needed by %s but was not found in the\n"
"same directory as \"%s\".\n"
"Check your installation.",
- progname, full_path);
+ "pg_dump", progname, full_path);
else
- pg_log_error("The program \"pg_dump\" was found by \"%s\"\n"
+ pg_log_error("The program \"%s\" was found by \"%s\"\n"
"but was not the same version as %s.\n"
"Check your installation.",
- full_path, progname);
+ "pg_dump", full_path, progname);
exit_nicely(1);
}
strlcpy(full_path, progname, sizeof(full_path));
if (rc == -1)
- pg_log_error("The program \"postgres\" is needed by %s but was not found in the\n"
+ pg_log_error("The program \"%s\" is needed by %s but was not found in the\n"
"same directory as \"%s\".\n"
"Check your installation.",
- progname, full_path);
+ "postgres", progname, full_path);
else
- pg_log_error("The program \"postgres\" was found by \"%s\"\n"
+ pg_log_error("The program \"%s\" was found by \"%s\"\n"
"but was not the same version as %s.\n"
"Check your installation.",
- full_path, progname);
+ "postgres", full_path, progname);
exit(1);
}
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- pg_fatal("The program \"%s\" is needed by %s but was\n"
- "not found in the same directory as \"%s\".\n"
+ pg_fatal("The program \"%s\" is needed by %s but was not found in the\n"
+ "same directory as \"%s\".\n"
"Check your installation.",
"postgres", progname, full_path);
else
- pg_fatal("The program \"%s\" was found by \"%s\" but was\n"
- "not the same version as %s.\n"
+ pg_fatal("The program \"%s\" was found by \"%s\"\n"
+ "but was not the same version as %s.\n"
"Check your installation.",
"postgres", full_path, progname);
}
if (find_my_exec(argv[0], full_path) < 0)
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- pg_log_fatal("The program \"%s\" is needed by %s but was\n"
- "not found in the same directory as \"%s\".\n"
+ pg_log_fatal("The program \"%s\" is needed by %s but was not found in the\n"
+ "same directory as \"%s\".\n"
"Check your installation.",
"pg_waldump", "pg_verifybackup", full_path);
else
- pg_log_fatal("The program \"%s\" was found by \"%s\" but was\n"
- "not the same version as %s.\n"
+ pg_log_fatal("The program \"%s\" was found by \"%s\"\n"
+ "but was not the same version as %s.\n"
"Check your installation.",
"pg_waldump", full_path, "pg_verifybackup");
}