chpst: fix "envdir dir" case (bug 4574).

This commit is contained in:
Denis Vlasenko 2008-08-15 21:03:17 +00:00
parent ec7e7aec8a
commit 69ed30928e

View File

@ -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;
}