Skip to content

Commit de7fd83

Browse files
committed
pg_upgrade: Make format strings consistent
The backport of commit f295494 introduced a format string using %m. This is not wrong, since those have been supported since commit d6c55de, but only commit 2c8118e later introduced their use in this file. This use introduces a gratuitously different translatable string and also makes it inconsistent with the rest of the file. To avoid that, switch this back to the old-style strerror() route in the appropriate backbranches
1 parent 7406a7d commit de7fd83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_upgrade/check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ check_for_not_null_inheritance(ClusterInfo *cluster)
10751075
for (int i = 0; i < ntup; i++)
10761076
{
10771077
if (script == NULL && (script = fopen_priv(output_path, "w")) == NULL)
1078-
pg_fatal("could not open file \"%s\": %m", output_path);
1078+
pg_fatal("could not open file \"%s\": %s", output_path, strerror(errno));
10791079
if (!db_used)
10801080
{
10811081
fprintf(script, "In database: %s\n", active_db->db_name);

0 commit comments

Comments
 (0)