mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 09:04:30 +00:00
ls: Use Core::System::pledge(..) instead of LibC API
This commit is contained in:
committed by
Brian Gianforcaro
parent
af3751e4dd
commit
7eaf1cfdc2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user