Delete symbolic links in rmrf.
This commit is contained in:
parent
bc7734a267
commit
651f49fc90
@ -95,7 +95,8 @@ Status rmrf(CSlice path) {
|
||||
unlink(path).ignore();
|
||||
break;
|
||||
case WalkPath::Type::Symlink:
|
||||
// never follow symbolic links
|
||||
// never follow symbolic links, but delete the link themselves
|
||||
unlink(path).ignore();
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user