Skip to content

Commit 3d2cad6

Browse files
committed
Utilities/userdel: Fix unveil issue
Usage of FileSystem::real_path requires 'r'
1 parent 6b6c16a commit 3d2cad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Userland/Utilities/userdel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
3535
auto& target_account = account_or_error.value();
3636

3737
if (remove_home)
38-
TRY(Core::System::unveil(target_account.home_directory(), "c"sv));
38+
TRY(Core::System::unveil(target_account.home_directory(), "rc"sv));
3939

4040
TRY(Core::System::unveil(nullptr, nullptr));
4141

0 commit comments

Comments
 (0)