In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/1cdd92240cabcef3700b896c9648b3a2b2970e28?hp=f5c4ec3553a69f8037ab6d54bc1e1f1e098572e8>

- Log -----------------------------------------------------------------
commit 1cdd92240cabcef3700b896c9648b3a2b2970e28
Author: Tony Cook <t...@develop-help.com>
Date:   Thu Jun 18 14:08:48 2015 +1000

    ensure chdir('') sets $! to ENOENT on non-IMP_SYS Win32 builds
-----------------------------------------------------------------------

Summary of changes:
 win32/win32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/win32/win32.c b/win32/win32.c
index fa051ac..0bb0348 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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;
     }

--
Perl5 Master Repository

Reply via email to