diff options
author | Denis Vlasenko | 2009-04-16 22:42:01 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-04-16 22:42:01 +0000 |
commit | 3161b6119969dcd0a01e26ea94ec203deda2d519 (patch) | |
tree | 8f5e2b2a22ea730642a08f35bd35eb07c0baf90c /util-linux | |
parent | 6dda5dec238e35d7e760091aee061e5fc51e0e30 (diff) | |
download | busybox-3161b6119969dcd0a01e26ea94ec203deda2d519.zip busybox-3161b6119969dcd0a01e26ea94ec203deda2d519.tar.gz |
mdev: set mode, needed when device node already exists.
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index f965b60..43527f6 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) { |