]> granicus.if.org Git - php/commitdiff
Add missing open_basedir check in posix_mkfifo
authorRasmus Lerdorf <rasmus@php.net>
Tue, 29 Sep 2009 14:03:49 +0000 (14:03 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 29 Sep 2009 14:03:49 +0000 (14:03 +0000)
ext/posix/posix.c

index c499b54d265b2df06c7f89312ab216ec3219441f..40cf14aafed3d130ea87e109692baebeb922ffd4 100644 (file)
@@ -873,6 +873,10 @@ PHP_FUNCTION(posix_mkfifo)
                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;