Here's a patch against 1.11.2 that changes mdev so that it will set the
file permissions on a device node that are given in mdev.conf.

Regards, Stuart
20080925 Stuart Hughes <stuarth at freescale dot com>

Make mdev take notice of file mode in mdev.conf

diff --exclude CVS -uNr busybox-1.11.2/util-linux/mdev.c busybox-1.11.2.modified/util-linux/mdev.c
--- busybox-1.11.2/util-linux/mdev.c	2008-06-25 13:51:32.000000000 +0100
+++ busybox-1.11.2.modified/util-linux/mdev.c	2008-09-25 15:36:33.000000000 +0100
@@ -254,6 +254,7 @@
 
 		if (ENABLE_FEATURE_MDEV_CONF) {
 			chown(device_name, uid, gid);
+			chmod(device_name, mode);
 
 			if (ENABLE_FEATURE_MDEV_RENAME && alias) {
 				char *dest;
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to