projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Jean Wolter writes:
[oweals/busybox.git]
/
coreutils
/
mknod.c
diff --git
a/coreutils/mknod.c
b/coreutils/mknod.c
index 59294e9cbb156e36c2ab5adc67c75622049056d4..d5e9e17fed1122e391d4a353c8257f11f33be990 100644
(file)
--- a/
coreutils/mknod.c
+++ b/
coreutils/mknod.c
@@
-46,7
+46,7
@@
extern int mknod_main(int argc, char **argv)
mode |= modes_cubp[(int)(name[4])];
dev = 0;
- if ((*name != 'p') && ((argc -= 2) ==
0
)) {
+ if ((*name != 'p') && ((argc -= 2) ==
2
)) {
dev = (bb_xgetularg10_bnd(argv[2], 0, 255) << 8)
+ bb_xgetularg10_bnd(argv[3], 0, 255);
}