Skip to content

Commit ed2bb0c

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 f9f6595 commit ed2bb0c

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
@@ -1255,7 +1255,7 @@ check_for_not_null_inheritance(ClusterInfo *cluster)
12551255
for (int i = 0; i < ntup; i++)
12561256
{
12571257
if (script == NULL && (script = fopen_priv(output_path, "w")) == NULL)
1258-
pg_fatal("could not open file \"%s\": %m", output_path);
1258+
pg_fatal("could not open file \"%s\": %s", output_path, strerror(errno));
12591259
if (!db_used)
12601260
{
12611261
fprintf(script, "In database: %s\n", active_db->db_name);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy