diff options
author | Erik Andersen | 2000-04-28 22:10:34 +0000 |
---|---|---|
committer | Erik Andersen | 2000-04-28 22:10:34 +0000 |
commit | 6ed02a0ee010a28b7649a9ef734679f7818c57e3 (patch) | |
tree | 7cb786c18876841a546f222f20e4b35e0bcf576a /coreutils/mknod.c | |
parent | abc199eb0cc485e42107595ca2d877c7724aced0 (diff) | |
download | busybox-6ed02a0ee010a28b7649a9ef734679f7818c57e3.zip busybox-6ed02a0ee010a28b7649a9ef734679f7818c57e3.tar.gz |
Fix stupid bugs. update was segfaulting. mknod minor # was always 0
due to a parsing bug. Oops.
-Erik
Diffstat (limited to 'coreutils/mknod.c')
-rw-r--r-- | coreutils/mknod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index 0c93df6..caa234f 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c @@ -58,6 +58,7 @@ int mknod_main(int argc, char **argv) argc--; argv++; parse_mode(*argv, &perm); + umask(0); break; default: usage(mknod_usage); @@ -87,7 +88,7 @@ int mknod_main(int argc, char **argv) } if (mode == S_IFCHR || mode == S_IFBLK) { - dev = (atoi(argv[2]) << 8) | atoi(argv[1]); + dev = (atoi(argv[2]) << 8) | atoi(argv[3]); } mode |= perm; |