mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 05:01:36 +00:00
better to use lstat for inode
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user