projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
373bc1e
)
Fix up brain damage with the way major and minor are used to
author
Eric Andersen
<andersen@codepoet.org>
Fri, 30 Jul 2004 14:36:37 +0000
(14:36 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 30 Jul 2004 14:36:37 +0000
(14:36 -0000)
create a dev_t
miscutils/makedevs.c
patch
|
blob
|
history
diff --git
a/miscutils/makedevs.c
b/miscutils/makedevs.c
index e4233330a2b6b80da2a33a8ba9f3378aed743e49..28b3f499a9b6260223bd4556b8d1725da0794f06 100644
(file)
--- 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 ... */