summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III2003-04-03 19:29:11 +0000
committerManuel Novoa III2003-04-03 19:29:11 +0000
commit0c236a09edf4491f1edb08b97503fce7b922fef5 (patch)
treef86664a2be3b3239b254a2b1d5318b4de5f2b96e
parent8320b425a3016e0610dee2970b24a0ebcad0d943 (diff)
downloadbusybox-0c236a09edf4491f1edb08b97503fce7b922fef5.zip
busybox-0c236a09edf4491f1edb08b97503fce7b922fef5.tar.gz
Fix 'thinko'.
-rw-r--r--coreutils/mknod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/mknod.c b/coreutils/mknod.c
index 59294e9..d5e9e17 100644
--- 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);
}