From 45bc51541a780eb7adf1016040bdfe6ca3310c73 Mon Sep 17 00:00:00 2001 From: Unbit Date: Wed, 8 Jan 2014 20:06:38 +0100 Subject: [PATCH] better to use lstat for inode --- core/uwsgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/uwsgi.c b/core/uwsgi.c index b0d8aa3f..a8e72ecc 100644 --- a/core/uwsgi.c +++ b/core/uwsgi.c @@ -1017,7 +1017,7 @@ void config_magic_table_fill(char *filename, char **magic_table) { magic_table['p'] = fullname; struct stat st; - if (!stat(fullname, &st)) { + if (!lstat(fullname, &st)) { magic_table['i'] = uwsgi_num2str(st.st_ino); }