From 0c236a09edf4491f1edb08b97503fce7b922fef5 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Thu, 3 Apr 2003 19:29:11 +0000 Subject: [PATCH] Fix 'thinko'. --- coreutils/mknod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.25.1