Fix incorrect arguments being passed to mknod

This commit is contained in:
Eric Andersen 2004-07-30 17:48:21 +00:00
parent b737b1a68b
commit cbcdbc41ff

View File

@ -27,8 +27,8 @@ int makedevs_main(int argc, char **argv)
basedev = argv[1]; basedev = argv[1];
type = argv[2]; type = argv[2];
Smajor = major(atoi(argv[3])); Smajor = atoi(argv[3]);
Sminor = minor(atoi(argv[4])); Sminor = atoi(argv[4]);
S = atoi(argv[5]); S = atoi(argv[5]);
E = atoi(argv[6]); E = atoi(argv[6]);
nodname = argc == 8 ? basedev : buf; nodname = argc == 8 ? basedev : buf;