diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-07-30 14:36:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-07-30 14:36:37 +0000 |
commit | e71e760a9945dffbf2e6238e70768dd52948abe5 (patch) | |
tree | dcc6eb3b58c687d2db182090baf3379509f2d456 /miscutils/makedevs.c | |
parent | 373bc1eaee19fa044bd6e32e7851948e37330385 (diff) | |
download | busybox-w32-e71e760a9945dffbf2e6238e70768dd52948abe5.tar.gz busybox-w32-e71e760a9945dffbf2e6238e70768dd52948abe5.tar.bz2 busybox-w32-e71e760a9945dffbf2e6238e70768dd52948abe5.zip |
Fix up brain damage with the way major and minor are used to
create a dev_t
Diffstat (limited to 'miscutils/makedevs.c')
-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 ... */ |