diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-07-30 14:36:37 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-07-30 14:36:37 +0000 |
| commit | f38e293b02a63c09d381bbb566d77caa40af7749 (patch) | |
| tree | dcc6eb3b58c687d2db182090baf3379509f2d456 /miscutils | |
| parent | 5881c6354943c9f9d34af931af8e61792707d944 (diff) | |
| download | busybox-w32-f38e293b02a63c09d381bbb566d77caa40af7749.tar.gz busybox-w32-f38e293b02a63c09d381bbb566d77caa40af7749.tar.bz2 busybox-w32-f38e293b02a63c09d381bbb566d77caa40af7749.zip | |
Fix up brain damage with the way major and minor are used to
create a dev_t
git-svn-id: svn://busybox.net/trunk/busybox@9045 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils')
| -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 ... */ |
