diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2022-04-03 16:17:11 -0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-04-03 17:13:51 -0700 |
commit | 7eaf1cfdc26cdaa216f61e2cfa601862ec79e012 (patch) | |
tree | bf5275769690c107ce48a6ca9257cdb249229bd5 /Userland/Utilities/ls.cpp | |
parent | af3751e4dd7301d1b51a6c4154eaf03b4daf2717 (diff) | |
download | serenity-7eaf1cfdc26cdaa216f61e2cfa601862ec79e012.zip |
ls: Use `Core::System::pledge(..)` instead of LibC API
Diffstat (limited to 'Userland/Utilities/ls.cpp')
-rw-r--r-- | Userland/Utilities/ls.cpp | 5 |
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; |