aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-07-30 14:36:37 +0000
committerEric Andersen <andersen@codepoet.org>2004-07-30 14:36:37 +0000
commite71e760a9945dffbf2e6238e70768dd52948abe5 (patch)
treedcc6eb3b58c687d2db182090baf3379509f2d456 /miscutils
parent373bc1eaee19fa044bd6e32e7851948e37330385 (diff)
downloadbusybox-e71e760a9945dffbf2e6238e70768dd52948abe5.tar.gz
Fix up brain damage with the way major and minor are used to
create a dev_t
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/makedevs.c2
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)
/* 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 ... */