mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-02-02 11:58:25 +00:00
lstat instead of stat for UNKNOWN stats
This commit is contained in:
parent
9096fc9686
commit
b1aa47e816
2
lsyncd.c
2
lsyncd.c
@ -1078,7 +1078,7 @@ l_readdir (lua_State *L)
|
|||||||
strcpy(entry, dirname);
|
strcpy(entry, dirname);
|
||||||
strcat(entry, "/");
|
strcat(entry, "/");
|
||||||
strcat(entry, de->d_name);
|
strcat(entry, de->d_name);
|
||||||
stat(entry, &st);
|
lstat(entry, &st);
|
||||||
isdir = S_ISDIR(st.st_mode);
|
isdir = S_ISDIR(st.st_mode);
|
||||||
free(entry);
|
free(entry);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user