From 49b34e9ac6f9300ebdc3655b7d2e6e9dffa67015 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Tue, 29 Sep 2009 14:03:49 +0000 Subject: [PATCH] Add missing open_basedir check in posix_mkfifo --- ext/posix/posix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/posix/posix.c b/ext/posix/posix.c index c499b54d26..40cf14aafe 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -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; -- 2.50.1