From: Michael Paquier Date: Tue, 27 Dec 2022 03:16:24 +0000 (+0900) Subject: Fix incorrect copy-pasto in error message of pg_waldump.c X-Git-Tag: REL_16_BETA1~1043 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2259c661dc4ecd88ac22b5358248f47ca5a5d4fc;p=thirdparty%2Fpostgresql.git Fix incorrect copy-pasto in error message of pg_waldump.c The error message used on fclose() failure was incorrect, so fix it. Oversight in d497093, that I have somehow managed to miss. --- diff --git a/src/bin/pg_waldump/pg_waldump.c b/src/bin/pg_waldump/pg_waldump.c index 15cc500672d..e97c47f3071 100644 --- a/src/bin/pg_waldump/pg_waldump.c +++ b/src/bin/pg_waldump/pg_waldump.c @@ -529,7 +529,7 @@ XLogRecordSaveFPWs(XLogReaderState *record, const char *savepath) pg_fatal("could not write file \"%s\": %m", filename); if (fclose(file) != 0) - pg_fatal("could not write file \"%s\": %m", filename); + pg_fatal("could not close file \"%s\": %m", filename); } }