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
commit ffc52b35fc
Notes: sideshowbarker 2024-07-16 19:32:42 +09:00

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));