better to use lstat for inode

This commit is contained in:
Unbit
2014-01-08 20:06:38 +01:00
parent 3427a17191
commit 45bc51541a
+1 -1
View File
@@ -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);
}