Skip to content

Commit

Permalink
ensure chdir('') sets $! to ENOENT on non-IMP_SYS Win32 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Jun 18, 2015
1 parent f5c4ec3 commit 1cdd922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/win32.c
Expand Up @@ -3366,7 +3366,7 @@ win32_rmdir(const char *dir)
DllExport int
win32_chdir(const char *dir)
{
if (!dir) {
if (!dir || !*dir) {
errno = ENOENT;
return -1;
}
Expand Down

0 comments on commit 1cdd922

Please sign in to comment.