We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2edf296 commit 650e073Copy full SHA for 650e073
ext/session/mod_files.c
@@ -202,7 +202,7 @@ static void ps_files_open(ps_files *data, const char *key)
202
accessed by backend with root permissions to execute some system tasks.
203
204
*/
205
- if (fstat(data->fd, &sbuf) || (sbuf.st_uid != 0 && sbuf.st_uid != getuid() && sbuf.st_uid != geteuid() && getuid() != 0)) {
+ if (zend_fstat(data->fd, &sbuf) || (sbuf.st_uid != 0 && sbuf.st_uid != getuid() && sbuf.st_uid != geteuid() && getuid() != 0)) {
206
close(data->fd);
207
data->fd = -1;
208
return;
0 commit comments