From: Peter Eisentraut Date: Thu, 7 Jul 2011 18:21:57 +0000 (+0300) Subject: Fix use of unportable %m format X-Git-Tag: REL9_2_BETA1~1435 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7fb49314defee9fdbfcf3847d0855ac6ef4d166;p=thirdparty%2Fpostgresql.git Fix use of unportable %m format --- diff --git a/contrib/pg_upgrade/file.c b/contrib/pg_upgrade/file.c index a7e40090e2f..02c81a7fc4e 100644 --- a/contrib/pg_upgrade/file.c +++ b/contrib/pg_upgrade/file.c @@ -287,7 +287,7 @@ pg_scandir_internal(const char *dirname, size_t entrysize; if ((dirdesc = opendir(dirname)) == NULL) - pg_log(PG_FATAL, "could not open directory \"%s\": %m\n", dirname); + pg_log(PG_FATAL, "could not open directory \"%s\": %s\n", dirname, getErrorText(errno)); *namelist = NULL;