[BusyBox-cvs] CVS update of busybox/miscutils (makedevs.c)
Erik Andersen
andersen at codepoet.org
Fri Jul 30 14:36:37 UTC 2004
Date: Friday, July 30, 2004 @ 08:36:37
Author: andersen
Path: /var/cvs/busybox/miscutils
Modified: makedevs.c (1.19 -> 1.20)
Fix up brain damage with the way major and minor are used to
create a dev_t
Index: busybox/miscutils/makedevs.c
diff -u busybox/miscutils/makedevs.c:1.19 busybox/miscutils/makedevs.c:1.20
--- busybox/miscutils/makedevs.c:1.19 Mon Jul 26 03:11:12 2004
+++ busybox/miscutils/makedevs.c Fri Jul 30 08:36:37 2004
@@ -58,7 +58,7 @@
/* 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 ... */
More information about the busybox-cvs
mailing list