summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Utilities/ls.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Userland/Utilities/ls.cpp b/Userland/Utilities/ls.cpp
index 793414cb71..d26c4bc695 100644
--- a/Userland/Utilities/ls.cpp
+++ b/Userland/Utilities/ls.cpp
@@ -94,10 +94,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
flag_colorize = true;
}
- if (pledge("stdio rpath", nullptr) < 0) {
- perror("pledge");
- return 1;
- }
+ TRY(Core::System::pledge("stdio rpath"));
Vector<StringView> paths;