diff options
-rw-r--r-- | coreutils/mknod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index 59294e9cb..d5e9e17fe 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); } |