Skip to content

Commit 92135ea

Browse files
committed
Use strerror(errno) instead of %m
Found by Fujii Masao
1 parent 1e57c2c commit 92135ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_basebackup/receivelog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
366366
}
367367
else if (r < 0)
368368
{
369-
fprintf(stderr, _("%s: select() failed: %m\n"), progname);
369+
fprintf(stderr, _("%s: select() failed: %s\n"),
370+
progname, strerror(errno));
370371
return false;
371372
}
372373
/* Else there is actually data on the socket */

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