mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
ls: Use Core::System::pledge(..)
instead of LibC API
This commit is contained in:
parent
af3751e4dd
commit
7eaf1cfdc2
Notes:
sideshowbarker
2024-07-17 14:28:31 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/7eaf1cfdc2 Pull-request: https://github.com/SerenityOS/serenity/pull/13496 Reviewed-by: https://github.com/awesomekling ✅
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user