cvs: TSRM(PHP_5_1) / tsrm_virtual_cwd.c

From: Date: Fri, 23 Dec 2005 18:57:39 +0000
Subject: cvs: TSRM(PHP_5_1) / tsrm_virtual_cwd.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4489@lists.php.net to get a copy of this message
sniper Fri Dec 23 18:57:39 2005 EDT Modified files: (Branch: PHP_5_1) /TSRM tsrm_virtual_cwd.c Log: MFH:fix mkdir() function properly (patch by nlopess) http://cvs.php.net/viewcvs.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.74.2.2&r2=1.74.2.3&diff_format=u Index: TSRM/tsrm_virtual_cwd.c diff -u TSRM/tsrm_virtual_cwd.c:1.74.2.2 TSRM/tsrm_virtual_cwd.c:1.74.2.3 --- TSRM/tsrm_virtual_cwd.c:1.74.2.2 Thu Dec 22 21:33:38 2005 +++ TSRM/tsrm_virtual_cwd.c Fri Dec 23 18:57:39 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tsrm_virtual_cwd.c,v 1.74.2.2 2005/12/22 21:33:38 edink Exp $ */ +/* $Id: tsrm_virtual_cwd.c,v 1.74.2.3 2005/12/23 18:57:39 sniper Exp $ */ #include <sys/types.h> #include <sys/stat.h> @@ -480,9 +480,9 @@ { int new_path_length; - new_path_length = GetLongPathName(path, NULL, 0) + 1; + new_path_length = GetLongPathName(path, NULL, 0); if (new_path_length == 0) { - return 1; + goto php_failed_getlongpath; } /* GetLongPathName already counts the \0 */ @@ -496,6 +496,7 @@ path_length = new_path_length; } else { free(new_path); +php_failed_getlongpath: new_path = NULL; } }

« previous php.zend-engine.cvs (#4489) next »