mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-08 23:42:53 +03:00
head: Use pledge()
This commit is contained in:
parent
21c78e2fc3
commit
540d9caa8e
Notes:
sideshowbarker
2024-07-19 09:09:50 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/540d9caa8e5 Pull-request: https://github.com/SerenityOS/serenity/pull/1275
@ -35,6 +35,11 @@ int head(const String& filename, bool print_filename, int line_count, int char_c
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int line_count = 0;
|
||||
int char_count = 0;
|
||||
bool never_print_filenames = false;
|
||||
|
Loading…
Reference in New Issue
Block a user