mirror of
https://github.com/sheumann/hush.git
synced 2024-08-26 12:29:04 +00:00
mdev: do not die on mknod errors
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4214f8b537
commit
e62a2463ec
@ -331,7 +331,7 @@ static void make_device(char *path, int delete)
|
||||
|
||||
if (!delete && major >= 0) {
|
||||
if (mknod(node_name, mode | type, makedev(major, minor)) && errno != EEXIST)
|
||||
bb_perror_msg_and_die("can't create %s", node_name);
|
||||
bb_perror_msg("can't create %s", node_name);
|
||||
if (major == root_major && minor == root_minor)
|
||||
symlink(node_name, "root");
|
||||
if (ENABLE_FEATURE_MDEV_CONF) {
|
||||
|
Loading…
Reference in New Issue
Block a user