diff options
author | Rob Landley <rob@landley.net> | 2008-02-12 19:05:44 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-02-12 19:05:44 -0600 |
commit | 0f8c4c5998317e575f1afd47dad7f6967bc271ab (patch) | |
tree | 11613ae34f3830bf02914c9381eaa5790da63801 /toys/mdev.c | |
parent | 6882ee89dc5da4081d5721706ad77a3e0396b1bc (diff) | |
download | toybox-0f8c4c5998317e575f1afd47dad7f6967bc271ab.tar.gz |
Add TOYFLAG_UMASK.
Diffstat (limited to 'toys/mdev.c')
-rw-r--r-- | toys/mdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toys/mdev.c b/toys/mdev.c index dff2e5c2..6e69a770 100644 --- a/toys/mdev.c +++ b/toys/mdev.c @@ -7,7 +7,7 @@ * * Not in SUSv3. -USE_MDEV(NEWTOY(mdev, "s", TOYFLAG_USR|TOYFLAG_BIN)) +USE_MDEV(NEWTOY(mdev, "s", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_UMASK)) config MDEV bool "mdev" @@ -166,7 +166,6 @@ found_device: } sprintf(temp, "/dev/%s", device_name); - umask(0); if (mknod(temp, mode | type, makedev(major, minor)) && errno != EEXIST) perror_exit("mknod %s failed", temp); |