1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

userdel: Removal of files does not require creation rights

This commit is contained in:
Ben Wiederhake 2023-05-20 10:55:25 +02:00 committed by Jelle Raaijmakers
parent 084ba2ef9d
commit ffc52b35fc

View file

@ -35,7 +35,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto& target_account = account_or_error.value();
if (remove_home)
TRY(Core::System::unveil(target_account.home_directory(), "c"sv));
TRY(Core::System::unveil(target_account.home_directory(), "r"sv));
TRY(Core::System::unveil(nullptr, nullptr));