mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
mknod: Use pledge()
This commit is contained in:
parent
8b49804895
commit
8f6dc3e9a0
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@ static int usage()
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
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: When invoked with type "p", no need for major/minor numbers.
|
||||||
// FIXME: Add some kind of option for specifying the file permissions.
|
// FIXME: Add some kind of option for specifying the file permissions.
|
||||||
if (argc != 5)
|
if (argc != 5)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue