From: Eric Andersen Date: Fri, 30 Jul 2004 14:36:37 +0000 (-0000) Subject: Fix up brain damage with the way major and minor are used to X-Git-Tag: 1_00_rc3~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e71e760a9945dffbf2e6238e70768dd52948abe5;p=platform%2Fupstream%2Fbusybox.git Fix up brain damage with the way major and minor are used to create a dev_t --- 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 ... */