mirror of
https://github.com/troglobit/finit.git
synced 2026-11-10 16:31:21 +00:00
Merge pull request #409 from liuming50/prevent-nftw-follow-symbolic-links
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -90,7 +90,7 @@ static int rmrf(const char *path)
|
||||
if (!fisdir(path))
|
||||
return 0;
|
||||
|
||||
nftw(path, do_delete, 20, FTW_DEPTH);
|
||||
nftw(path, do_delete, 20, FTW_DEPTH | FTW_PHYS);
|
||||
if (remove(path) && errno != ENOENT)
|
||||
warn("Failed removing path %s", path);
|
||||
|
||||
|
||||
Reference in new issue
Block a user