From 0ba3aec5f7762fc9be36af4efcbadbc605c3359c Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 17 May 2014 05:50:01 +0200 Subject: [PATCH] only used if HAVE_NOFOLLOW --- ext/session/mod_files.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index dd9361b34e..2c2b0fa555 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -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) { char buf[MAXPATHLEN]; +#ifdef O_NOFOLLOW struct stat sbuf; +#endif if (data->fd < 0 || !data->lastkey || strcmp(key, data->lastkey)) { if (data->lastkey) { -- 2.50.1