com php-src: Fixed bug data->fd not set to -1 for open_basedi r failure.: ext/session/mod_files.c

From: Date: Thu, 30 Jan 2014 05:15:29 +0000
Subject: com php-src: Fixed bug data->fd not set to -1 for open_basedi r failure.: ext/session/mod_files.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75858@lists.php.net to get a copy of this message
Commit: f5e097d1ed5ab34cbaac49dee542b0af92f941f5 Author: Yasuo Ohgaki <yohgaki@php.net> Thu, 30 Jan 2014 14:15:29 +0900 Parents: d941ac5b4f4a53a5e081ede47e36665f62ad7bea Branches: PHP-5.4 PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f5e097d1ed5ab34cbaac49dee542b0af92f941f5 Log: Fixed bug data->fd not set to -1 for open_basedir failure. Changed paths: M ext/session/mod_files.c Diff: diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 615db85..86a2235 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -176,10 +176,12 @@ static void ps_files_open(ps_files *data, const char *key TSRMLS_DC) if (fstat(data->fd, &sbuf)) { close(data->fd); + data->fd = -1; return; } if (S_ISLNK(sbuf.st_mode) && php_check_open_basedir(buf TSRMLS_CC)) { close(data->fd); + data->fd = -1; return; } }

« previous php.cvs (#75858) next »