From: Denis Vlasenko Date: Fri, 15 Aug 2008 21:03:17 +0000 (-0000) Subject: chpst: fix "envdir dir" case (bug 4574). X-Git-Tag: 1_12_0~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69ed30928eeb1c31196361d70e37ca3010acf8e7;p=platform%2Fupstream%2Fbusybox.git chpst: fix "envdir dir" case (bug 4574). --- diff --git a/runit/chpst.c b/runit/chpst.c index 6e5180b..43e8d5f 100644 --- a/runit/chpst.c +++ b/runit/chpst.c @@ -228,7 +228,7 @@ int chpst_main(int argc UNUSED_PARAM, char **argv) } // envuidgid? - if (ENABLE_ENVUIDGID && applet_name[0] == 'e') { + if (ENABLE_ENVUIDGID && applet_name[0] == 'e' && applet_name[3] == 'u') { env_user = *argv++; opt |= OPT_U; }