aboutsummaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/makedevs.c')
-rw-r--r--miscutils/makedevs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index abf505770..0578d9251 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -36,10 +36,10 @@ int makedevs_main(int argc, char **argv)
36 basedev = argv[1]; 36 basedev = argv[1];
37 buf = xasprintf("%s%u", argv[1], (unsigned)-1); 37 buf = xasprintf("%s%u", argv[1], (unsigned)-1);
38 type = argv[2]; 38 type = argv[2];
39 Smajor = xatoi_u(argv[3]); 39 Smajor = xatoi_positive(argv[3]);
40 Sminor = xatoi_u(argv[4]); 40 Sminor = xatoi_positive(argv[4]);
41 S = xatoi_u(argv[5]); 41 S = xatoi_positive(argv[5]);
42 E = xatoi_u(argv[6]); 42 E = xatoi_positive(argv[6]);
43 nodname = argv[7] ? basedev : buf; 43 nodname = argv[7] ? basedev : buf;
44 44
45 mode = 0660; 45 mode = 0660;