cvs: TSRM(PHP_5_2) / tsrm_virtual_cwd.c

From: Date: Fri, 10 Nov 2006 16:57:17 +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-5392@lists.php.net to get a copy of this message
dmitry Fri Nov 10 16:57:17 2006 UTC Modified files: (Branch: PHP_5_2) /TSRM tsrm_virtual_cwd.c Log: Fixed wrong realpath() result in case of unexistent path http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.74.2.9.2.11&r2=1.74.2.9.2.12&diff_format=u Index: TSRM/tsrm_virtual_cwd.c diff -u TSRM/tsrm_virtual_cwd.c:1.74.2.9.2.11 TSRM/tsrm_virtual_cwd.c:1.74.2.9.2.12 --- TSRM/tsrm_virtual_cwd.c:1.74.2.9.2.11 Fri Nov 10 15:04:07 2006 +++ TSRM/tsrm_virtual_cwd.c Fri Nov 10 16:57:17 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tsrm_virtual_cwd.c,v 1.74.2.9.2.11 2006/11/10 15:04:07 dmitry Exp $ */ +/* $Id: tsrm_virtual_cwd.c,v 1.74.2.9.2.12 2006/11/10 16:57:17 dmitry Exp $ */ #include <sys/types.h> #include <sys/stat.h> @@ -512,7 +512,7 @@ char resolved_path[MAXPATHLEN]; if (!realpath(path, resolved_path)) { /* Note: Not threadsafe on older *BSD's */ - goto no_realpath; + return 1; } CWD_STATE_COPY(&old_state, state);

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