cvs: TSRM / tsrm_virtual_cwd.c
| From: | Antony Dovgal | Date: | Thu, 03 Aug 2006 14:16:56 +0000 |
| Subject: | cvs: TSRM / tsrm_virtual_cwd.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5149@lists.php.net to get a copy of this message | ||
tony2001 Thu Aug 3 14:16:56 2006 UTC
Modified files:
/TSRM tsrm_virtual_cwd.c
Log:
fix #38276 (file_exists() works incorrectly with long filenames on Windows)
aka "Ilia forgot to MFB fix for #31347"
http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.82&r2=1.83&diff_format=u
Index: TSRM/tsrm_virtual_cwd.c
diff -u TSRM/tsrm_virtual_cwd.c:1.82 TSRM/tsrm_virtual_cwd.c:1.83
--- TSRM/tsrm_virtual_cwd.c:1.82 Wed Feb 8 20:49:40 2006
+++ TSRM/tsrm_virtual_cwd.c Thu Aug 3 14:16:56 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_virtual_cwd.c,v 1.82 2006/02/08 20:49:40 tony2001 Exp $ */
+/* $Id: tsrm_virtual_cwd.c,v 1.83 2006/08/03 14:16:56 tony2001 Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -706,7 +706,9 @@
}
CWD_STATE_COPY(&new_state, &CWDG(cwd));
- virtual_file_ex(&new_state, path, NULL, 1);
+ if (virtual_file_ex(&new_state, path, NULL, 1)) {
+ return -1;
+ }
f = fopen(new_state.cwd, mode);