|
|
@ -145,10 +145,12 @@ static void ps_files_open(ps_files *data, const char *key TSRMLS_DC) |
|
|
|
|
|
|
|
|
if (fstat(data->fd, &sbuf)) { |
|
|
if (fstat(data->fd, &sbuf)) { |
|
|
close(data->fd); |
|
|
close(data->fd); |
|
|
|
|
|
data->fd = -1; |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (S_ISLNK(sbuf.st_mode) && php_check_open_basedir(buf TSRMLS_CC)) { |
|
|
if (S_ISLNK(sbuf.st_mode) && php_check_open_basedir(buf TSRMLS_CC)) { |
|
|
close(data->fd); |
|
|
close(data->fd); |
|
|
|
|
|
data->fd = -1; |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|