diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-14 08:06:59 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-14 08:06:59 +0000 |
commit | 7f9593753a194c3d3db79f803f68d2ebaf98cd12 (patch) | |
tree | 53248c85f42e075a371bb71b9e066f398e6baa50 | |
parent | b024f8da8fad7ffd9bc5e63ed947bf6bd35fac3e (diff) | |
download | busybox-w32-7f9593753a194c3d3db79f803f68d2ebaf98cd12.tar.gz busybox-w32-7f9593753a194c3d3db79f803f68d2ebaf98cd12.tar.bz2 busybox-w32-7f9593753a194c3d3db79f803f68d2ebaf98cd12.zip |
randomconfig fixes
-rw-r--r-- | libbb/update_passwd.c | 4 | ||||
-rw-r--r-- | shell/hush.c | 6 | ||||
-rw-r--r-- | util-linux/mdev.c | 7 |
3 files changed, 12 insertions, 5 deletions
diff --git a/libbb/update_passwd.c b/libbb/update_passwd.c index 32943482c..35b89a5b4 100644 --- a/libbb/update_passwd.c +++ b/libbb/update_passwd.c | |||
@@ -224,8 +224,10 @@ int FAST_FUNC update_passwd(const char *filename, | |||
224 | } | 224 | } |
225 | 225 | ||
226 | if (changed_lines == 0) { | 226 | if (changed_lines == 0) { |
227 | if (ENABLE_FEATURE_DEL_USER_FROM_GROUP && member) | 227 | #if ENABLE_FEATURE_DEL_USER_FROM_GROUP |
228 | if (member) | ||
228 | bb_error_msg("can't find %s in %s", member, filename); | 229 | bb_error_msg("can't find %s in %s", member, filename); |
230 | #endif | ||
229 | if ((ENABLE_ADDUSER || ENABLE_ADDGROUP) | 231 | if ((ENABLE_ADDUSER || ENABLE_ADDGROUP) |
230 | && applet_name[0] == 'a' && !member | 232 | && applet_name[0] == 'a' && !member |
231 | ) { | 233 | ) { |
diff --git a/shell/hush.c b/shell/hush.c index ba3e2c3f0..b6e49db99 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -4069,11 +4069,15 @@ static void done_pipe(struct parse_context *ctx, pipe_style type) | |||
4069 | * RES_NONE case is for "for a in; do ..." (empty IN set) | 4069 | * RES_NONE case is for "for a in; do ..." (empty IN set) |
4070 | * and other cases to work. */ | 4070 | * and other cases to work. */ |
4071 | if (not_null | 4071 | if (not_null |
4072 | #if HAS_KEYWORDS | 4072 | #if ENABLE_HUSH_IF |
4073 | || ctx->ctx_res_w == RES_FI | 4073 | || ctx->ctx_res_w == RES_FI |
4074 | #endif | ||
4075 | #if ENABLE_HUSH_LOOPS | ||
4074 | || ctx->ctx_res_w == RES_DONE | 4076 | || ctx->ctx_res_w == RES_DONE |
4075 | || ctx->ctx_res_w == RES_FOR | 4077 | || ctx->ctx_res_w == RES_FOR |
4076 | || ctx->ctx_res_w == RES_IN | 4078 | || ctx->ctx_res_w == RES_IN |
4079 | #endif | ||
4080 | #if ENABLE_HUSH_CASE | ||
4077 | || ctx->ctx_res_w == RES_ESAC | 4081 | || ctx->ctx_res_w == RES_ESAC |
4078 | #endif | 4082 | #endif |
4079 | ) { | 4083 | ) { |
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index b1f3d051c..0f7e082ba 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -98,10 +98,11 @@ static void make_device(char *path, int delete) | |||
98 | if (strstr(path, "/block/")) | 98 | if (strstr(path, "/block/")) |
99 | type = S_IFBLK; | 99 | type = S_IFBLK; |
100 | 100 | ||
101 | #if ENABLE_FEATURE_MDEV_CONF | 101 | #if !ENABLE_FEATURE_MDEV_CONF |
102 | parser = config_open2("/etc/mdev.conf", fopen_for_read); | 102 | mode = 0660; |
103 | 103 | #else | |
104 | /* If we have config file, look up user settings */ | 104 | /* If we have config file, look up user settings */ |
105 | parser = config_open2("/etc/mdev.conf", fopen_for_read); | ||
105 | while (1) { | 106 | while (1) { |
106 | regmatch_t off[1 + 9*ENABLE_FEATURE_MDEV_RENAME_REGEXP]; | 107 | regmatch_t off[1 + 9*ENABLE_FEATURE_MDEV_RENAME_REGEXP]; |
107 | int keep_matching; | 108 | int keep_matching; |