cvs: php4 / php_virtual_cwd.c

From: Date: Sun, 04 Jun 2000 07:59:32 +0000
Subject: cvs: php4 / php_virtual_cwd.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-16126@lists.php.net to get a copy of this message
stas Sun Jun 4 00:59:32 2000 EDT Modified files: /php4 php_virtual_cwd.c Log: chdir returns -1 on error, so should V_CHDIR Index: php4/php_virtual_cwd.c diff -u php4/php_virtual_cwd.c:1.49 php4/php_virtual_cwd.c:1.50 --- php4/php_virtual_cwd.c:1.49 Mon May 29 10:03:24 2000 +++ php4/php_virtual_cwd.c Sun Jun 4 00:59:32 2000 @@ -245,7 +245,7 @@ return buf; } - +/* Resolve path relatively to state and put the real path into state */ /* returns 0 for ok, 1 for error */ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path) { @@ -350,7 +350,7 @@ { CWDLS_FETCH(); - return virtual_file_ex(&CWDG(cwd), path, php_is_dir_ok); + return virtual_file_ex(&CWDG(cwd), path, php_is_dir_ok)?-1:0; } CWD_API int virtual_chdir_file(char *path)

« previous php.version4 (#16126) next »