rasmus                                   Tue, 29 Sep 2009 14:03:49 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=288944

Log:
Add missing open_basedir check in posix_mkfifo

Changed paths:
    U   php/php-src/trunk/ext/posix/posix.c

Modified: php/php-src/trunk/ext/posix/posix.c
===================================================================
--- php/php-src/trunk/ext/posix/posix.c 2009-09-29 14:02:50 UTC (rev 288943)
+++ php/php-src/trunk/ext/posix/posix.c 2009-09-29 14:03:49 UTC (rev 288944)
@@ -873,6 +873,10 @@
                RETURN_FALSE;
        }

+       if (php_check_open_basedir_ex(path, 0 TSRMLS_CC)) {
+               RETURN_FALSE;
+       }
+
        result = mkfifo(path, mode);
        if (result < 0) {
                POSIX_G(last_error) = errno;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to