From f38e293b02a63c09d381bbb566d77caa40af7749 Mon Sep 17 00:00:00 2001 From: andersen Date: Fri, 30 Jul 2004 14:36:37 +0000 Subject: 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 --- miscutils/makedevs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) /* 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 ... */ -- cgit v1.2.3-55-g6feb