← Commit list

b9c262b02

Denis Vlasenko
Denis Vlasenko
2008-08-20
FAILED Duration: 31s

Subject

envdir: fix "envdir with no params" case

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

runit/chpst.c+3 -1
@@ -213,6 +213,8 @@ int chpst_main(int argc UNUSED_PARAM, char **argv)
} else {
option_mask32 = opt = 0;
argv++;
+ if (!*argv)
+ bb_show_usage();
}
// envdir?
@@ -222,7 +224,7 @@ int chpst_main(int argc UNUSED_PARAM, char **argv)
}
// setuidgid?
- if (ENABLE_SETUIDGID && applet_name[0] == 's') {
+ if (ENABLE_SETUIDGID && applet_name[1] == 'e') {
set_user = *argv++;
opt |= OPT_u;
}