mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 03:32:18 +00:00
Fix up brain damage with the way major and minor are used to
create a dev_t
This commit is contained in:
parent
373bc1eaee
commit
e71e760a99
@ -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 ... */
|
||||
|
Loading…
Reference in New Issue
Block a user