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();
|
unlink(path).ignore();
|
||||||
break;
|
break;
|
||||||
case WalkPath::Type::Symlink:
|
case WalkPath::Type::Symlink:
|
||||||
// never follow symbolic links
|
// never follow symbolic links, but delete the link themselves
|
||||||
|
unlink(path).ignore();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user