commit | b9c262b0296de501c387539abd67d324e33ddcea | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Wed Aug 20 22:19:27 2008 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Wed Aug 20 22:19:27 2008 +0000 |
tree | 0213286f49adb83f08f14d0075daa94018cba4b0 | |
parent | 99b4083647618e88f50110d83bf5b9063076c655 [diff] [blame] |
envdir: fix "envdir with no params" case
diff --git a/runit/chpst.c b/runit/chpst.c index 43e8d5f..82a81f5 100644 --- a/runit/chpst.c +++ b/runit/chpst.c
@@ -213,6 +213,8 @@ } else { option_mask32 = opt = 0; argv++; + if (!*argv) + bb_show_usage(); } // envdir? @@ -222,7 +224,7 @@ } // setuidgid? - if (ENABLE_SETUIDGID && applet_name[0] == 's') { + if (ENABLE_SETUIDGID && applet_name[1] == 'e') { set_user = *argv++; opt |= OPT_u; }