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: https://github.com/SerenityOS/serenity/commit/8f6dc3e9a0e
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
Reference in a new issue