svn: /php/php-src/trunk/ext/posix/ posix.c

From: Date: Tue, 29 Sep 2009 14:03:49 +0000
Subject: svn: /php/php-src/trunk/ext/posix/ posix.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-60547@lists.php.net to get a copy of this message
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;

« previous php.cvs (#60547) next »