diff options
-rw-r--r-- | miscutils/makedevs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index e4233330a..28b3f499a 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c | |||
@@ -58,7 +58,7 @@ int makedevs_main(int argc, char **argv) | |||
58 | 58 | ||
59 | /* if mode != S_IFCHR and != S_IFBLK third param in mknod() ignored */ | 59 | /* if mode != S_IFCHR and != S_IFBLK third param in mknod() ignored */ |
60 | 60 | ||
61 | if (mknod(nodname, mode, Smajor | Sminor)) | 61 | if (mknod(nodname, mode, makedev(Smajor, Sminor))) |
62 | bb_error_msg("Failed to create: %s", nodname); | 62 | bb_error_msg("Failed to create: %s", nodname); |
63 | 63 | ||
64 | if (nodname == basedev) /* ex. /dev/hda - to /dev/hda1 ... */ | 64 | if (nodname == basedev) /* ex. /dev/hda - to /dev/hda1 ... */ |