mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 21:42:40 +07:00
Merge pull request #409 from liuming50/prevent-nftw-follow-symbolic-links
This commit is contained in:
+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