Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-2
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)