Skip to content

Commit

Permalink
Merge pull request #409 from liuming50/prevent-nftw-follow-symbolic-l…
Browse files Browse the repository at this point in the history
…inks
  • Loading branch information
troglobit authored Aug 24, 2024
2 parents dc873c6 + 3e3e9aa commit 2daa953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tmpfiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2daa953

Please sign in to comment.