tony2001 Fri Oct 6 14:01:55 2006 UTC
Modified files:
/TSRM tsrm_virtual_cwd.c
Log:
fix #39060 (virtual_file_ex() is broken on *BSD)
http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.89&r2=1.90&diff_format=u
Index: TSRM/tsrm_virtual_cwd.c
diff -u TSRM/tsrm_virtual_cwd.c:1.89 TSRM/tsrm_virtual_cwd.c:1.90
--- TSRM/tsrm_virtual_cwd.c:1.89 Thu Oct 5 08:04:51 2006
+++ TSRM/tsrm_virtual_cwd.c Fri Oct 6 14:01:55 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_virtual_cwd.c,v 1.89 2006/10/05 08:04:51 dmitry Exp $ */
+/* $Id: tsrm_virtual_cwd.c,v 1.90 2006/10/06 14:01:55 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;
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|