mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
mknod: Use pledge()
This commit is contained in:
parent
8b49804895
commit
8f6dc3e9a0
Notes:
sideshowbarker
2024-07-19 09:46:22 +09:00
Author: https://github.com/awesomekling
Commit: 8f6dc3e9a0
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@ static int usage()
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio dpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
// FIXME: When invoked with type "p", no need for major/minor numbers.
|
||||
// FIXME: Add some kind of option for specifying the file permissions.
|
||||
if (argc != 5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue