mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
env: Use pledge()
This commit is contained in:
parent
b2f9a60bdb
commit
4b0e0bd9b8
Notes:
sideshowbarker
2024-07-19 09:14:08 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4b0e0bd9b8d
@ -29,6 +29,11 @@
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
if (pledge("stdio", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (size_t i = 0; environ[i]; ++i)
|
||||
printf("%s\n", environ[i]);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user