mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
ls: Use Core::System::pledge(..)
instead of LibC API
This commit is contained in:
parent
af3751e4dd
commit
7eaf1cfdc2
1 changed files with 1 additions and 4 deletions
|
@ -94,10 +94,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
flag_colorize = true;
|
flag_colorize = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pledge("stdio rpath", nullptr) < 0) {
|
TRY(Core::System::pledge("stdio rpath"));
|
||||||
perror("pledge");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
Vector<StringView> paths;
|
Vector<StringView> paths;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue