← Commit list

24aa93d53

Ron Yorston
Ron Yorston
2024-09-27
SUCCESS Duration: 156s

Subject

ash: reject unknown long options

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 →

shell/ash.c+2 -1
@@ -11502,11 +11502,12 @@ options(int *login_sh)
if (val && (c == '-')) { /* long options */
if (strcmp(p, "login") == 0) {
*login_sh = 1;
+ break;
}
/* TODO: --noprofile: e.g. if I want to run emergency shell from sulogin,
* I want minimal/no shell init scripts - but it insists on running it as "-ash"...
*/
- break;
+ ash_msg_and_raise_error("bad option '%s'", p - 2);
}
}
if (c == 'o') {