aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-16 22:42:01 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-16 22:42:01 +0000
commit3161b6119969dcd0a01e26ea94ec203deda2d519 (patch)
tree8f5e2b2a22ea730642a08f35bd35eb07c0baf90c /util-linux/mdev.c
parent6dda5dec238e35d7e760091aee061e5fc51e0e30 (diff)
downloadbusybox-w32-3161b6119969dcd0a01e26ea94ec203deda2d519.tar.gz
busybox-w32-3161b6119969dcd0a01e26ea94ec203deda2d519.tar.bz2
busybox-w32-3161b6119969dcd0a01e26ea94ec203deda2d519.zip
mdev: set mode, needed when device node already exists.
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c1
1 files changed, 1 insertions, 0 deletions
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)
274 if (major == root_major && minor == root_minor) 274 if (major == root_major && minor == root_minor)
275 symlink(device_name, "root"); 275 symlink(device_name, "root");
276#if ENABLE_FEATURE_MDEV_CONF 276#if ENABLE_FEATURE_MDEV_CONF
277 chmod(device_name, mode);
277 chown(device_name, ugid.uid, ugid.gid); 278 chown(device_name, ugid.uid, ugid.gid);
278# if ENABLE_FEATURE_MDEV_RENAME 279# if ENABLE_FEATURE_MDEV_RENAME
279 if (alias) { 280 if (alias) {