summaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/makedevs.c')
-rw-r--r--miscutils/makedevs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index e423333..28b3f49 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -58,7 +58,7 @@ int makedevs_main(int argc, char **argv)
/* if mode != S_IFCHR and != S_IFBLK third param in mknod() ignored */
- if (mknod(nodname, mode, Smajor | Sminor))
+ if (mknod(nodname, mode, makedev(Smajor, Sminor)))
bb_error_msg("Failed to create: %s", nodname);
if (nodname == basedev) /* ex. /dev/hda - to /dev/hda1 ... */