cvs: php4 /ext/standard dir.c
| From: | Derick Rethans | Date: | Wed, 14 Feb 2001 11:02:55 +0000 |
| Subject: | cvs: php4 /ext/standard dir.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4016@lists.php.net to get a copy of this message | ||
derick Wed Feb 14 03:02:55 2001 EDT
Modified files:
/php4/ext/standard dir.c
Log:
- Added an extra chdir("/"); as sugested by Sascha
Index: php4/ext/standard/dir.c
diff -u php4/ext/standard/dir.c:1.53 php4/ext/standard/dir.c:1.54
--- php4/ext/standard/dir.c:1.53 Wed Feb 14 02:48:48 2001
+++ php4/ext/standard/dir.c Wed Feb 14 03:02:54 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dir.c,v 1.53 2001/02/14 10:48:48 derick Exp $ */
+/* $Id: dir.c,v 1.54 2001/02/14 11:02:54 derick Exp $ */
/* {{{ includes/startup/misc */
@@ -239,6 +239,13 @@
if (ret != 0) {
php_error(E_WARNING, "chroot: %s (errno %d)", strerror(errno), errno);
+ RETURN_FALSE;
+ }
+
+ ret = chdir("/");
+
+ if (ret != 0) {
+ php_error(E_WARNING, "chdir: %s (errno %d)", strerror(errno), errno);
RETURN_FALSE;
}