cvs: php4 /ext/standard/ dir.c
[email protected] ("Stanislav Malyshev") Sun, 04 Jun 2000 07:57:40 -0000
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <cvsstas960105460@cvsserver> |
stas Sun Jun 4 00:57:40 2000 EDT
Modified files:
/php4/ext/standard dir.c
Log:
chdir returns 0 on success, compare against it
Index: php4/ext/standard/dir.c
diff -u php4/ext/standard/dir.c:1.34 php4/ext/standard/dir.c:1.35
--- php4/ext/standard/dir.c:1.34 Tue May 23 08:13:16 2000
+++ php4/ext/standard/dir.c Sun Jun 4 00:57:40 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dir.c,v 1.34 2000/05/23 15:13:16 sas Exp $ */
+/* $Id: dir.c,v 1.35 2000/06/04 07:57:40 stas Exp $ */
/* {{{ includes/startup/misc */
@@ -212,7 +212,7 @@
ret = V_CHDIR((*arg)->value.str.val);
- if (ret < 0) {
+ if (ret != 0) {
php_error(E_WARNING, "ChDir: %s (errno %d)", strerror(errno), errno);
RETURN_FALSE;
}