From 3161b6119969dcd0a01e26ea94ec203deda2d519 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 16 Apr 2009 22:42:01 +0000 Subject: mdev: set mode, needed when device node already exists. --- util-linux/mdev.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util-linux') diff --git a/util-linux/mdev.c b/util-linux/mdev.c index f965b6069..43527f645 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c @@ -274,6 +274,7 @@ static void make_device(char *path, int delete) if (major == root_major && minor == root_minor) symlink(device_name, "root"); #if ENABLE_FEATURE_MDEV_CONF + chmod(device_name, mode); chown(device_name, ugid.uid, ugid.gid); # if ENABLE_FEATURE_MDEV_RENAME if (alias) { -- cgit v1.2.3