Skip to content

Commit c2e8386

Browse files
committed
Fix Win32 bug with missing errno for strerror().
1 parent 550fbc6 commit c2e8386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/port/exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/port/exec.c,v 1.2 2004/05/12 13:38:49 momjian Exp $
10+
* $PostgreSQL: pgsql/src/port/exec.c,v 1.3 2004/05/13 01:47:12 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -329,7 +329,7 @@ win32_make_absolute(char *path)
329329

330330
if (_fullpath(abspath, path, MAXPGPATH) == NULL)
331331
{
332-
log_debug("Win32 path expansion failed: %s", strerror());
332+
log_debug("Win32 path expansion failed: %s", strerror(errno));
333333
return path;
334334
}
335335
canonicalize_path(abspath);

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