mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
only used if HAVE_NOFOLLOW
This commit is contained in:
parent
c0bd24b502
commit
0ba3aec5f7
1 changed files with 2 additions and 0 deletions
|
@ -121,7 +121,9 @@ static void ps_files_close(ps_files *data)
|
||||||
static void ps_files_open(ps_files *data, const char *key TSRMLS_DC)
|
static void ps_files_open(ps_files *data, const char *key TSRMLS_DC)
|
||||||
{
|
{
|
||||||
char buf[MAXPATHLEN];
|
char buf[MAXPATHLEN];
|
||||||
|
#ifdef O_NOFOLLOW
|
||||||
struct stat sbuf;
|
struct stat sbuf;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (data->fd < 0 || !data->lastkey || strcmp(key, data->lastkey)) {
|
if (data->fd < 0 || !data->lastkey || strcmp(key, data->lastkey)) {
|
||||||
if (data->lastkey) {
|
if (data->lastkey) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue