mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
mkdir: Use pledge()
This commit is contained in:
parent
53e7490b81
commit
7281214af2
Notes:
sideshowbarker
2024-07-19 09:14:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7281214af2c
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,11 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio cpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc != 2) {
|
||||
printf("usage: mkdir <path>\n");
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue