cvs: TSRM(PHP_5_2) / tsrm_virtual_cwd.c
| From: | Antony Dovgal | Date: | Fri, 06 Oct 2006 14:03:19 +0000 |
| Subject: | cvs: TSRM(PHP_5_2) / tsrm_virtual_cwd.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5313@lists.php.net to get a copy of this message | ||
tony2001 Fri Oct 6 14:03:19 2006 UTC
Modified files: (Branch: PHP_5_2)
/TSRM tsrm_virtual_cwd.c
Log:
MFH: fix #39060 (virtual_file_ex() is broken on *BSD)
http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.74.2.9.2.8&r2=1.74.2.9.2.9&diff_format=u
Index: TSRM/tsrm_virtual_cwd.c
diff -u TSRM/tsrm_virtual_cwd.c:1.74.2.9.2.8 TSRM/tsrm_virtual_cwd.c:1.74.2.9.2.9
--- TSRM/tsrm_virtual_cwd.c:1.74.2.9.2.8 Thu Oct 5 12:09:58 2006
+++ TSRM/tsrm_virtual_cwd.c Fri Oct 6 14:03:19 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_virtual_cwd.c,v 1.74.2.9.2.8 2006/10/05 12:09:58 dmitry Exp $ */
+/* $Id: tsrm_virtual_cwd.c,v 1.74.2.9.2.9 2006/10/06 14:03:19 tony2001 Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -385,7 +385,7 @@
/* cwd_length can be 0 when getcwd() fails.
* This can happen under solaris when a dir does not have read permissions
* but *does* have execute permissions */
- if (!IS_ABSOLUTE_PATH(path, path_length) && (state->cwd_length > 1)) {
+ if (!IS_ABSOLUTE_PATH(path, path_length) && (state->cwd_length > 0)) {
int orig_path_len;
int state_cwd_length = state->cwd_length;