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); }