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;
        }
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to