From 7f9593753a194c3d3db79f803f68d2ebaf98cd12 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 14 Apr 2009 08:06:59 +0000 Subject: randomconfig fixes --- util-linux/mdev.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'util-linux') diff --git a/util-linux/mdev.c b/util-linux/mdev.c index b1f3d05..0f7e082 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c @@ -98,10 +98,11 @@ static void make_device(char *path, int delete) if (strstr(path, "/block/")) type = S_IFBLK; -#if ENABLE_FEATURE_MDEV_CONF - parser = config_open2("/etc/mdev.conf", fopen_for_read); - +#if !ENABLE_FEATURE_MDEV_CONF + mode = 0660; +#else /* If we have config file, look up user settings */ + parser = config_open2("/etc/mdev.conf", fopen_for_read); while (1) { regmatch_t off[1 + 9*ENABLE_FEATURE_MDEV_RENAME_REGEXP]; int keep_matching; -- cgit v1.1