← Commit list

0519429ea

Denys Vlasenko
Denys Vlasenko
2026-04-29
SUCCESS Duration: 144s

Subject

hush: fix build for !HUSH_CASE config

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
gcc -Wp,-MD,applets/.usage.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer      -Iinclude -Iinclude -o applets/usage applets/usage.c

Build Log

(log yok)

Commit Diff GitHub →

shell/hush.c+4 -4
@@ -5797,10 +5797,10 @@ static ALWAYS_INLINE const struct alias *find_alias(const char *name)
static const struct alias *word_matches_alias(struct parse_context *ctx)
{
- if (ctx->ctx_res_w != RES_CASE_BODY
-/* && !ctx.command->argv - caller checked this */
- && !ctx->word.has_quoted_part
- && ctx->word.data[0] != '\0' /* optimization */
+ if (IF_HUSH_CASE(ctx->ctx_res_w != RES_CASE_BODY &&)
+/* !ctx.command->argv && - caller checked this */
+ !ctx->word.has_quoted_part &&
+ ctx->word.data[0] != '\0' /* optimization */
) {
const char *word = ctx->word.data;
const char *end = end_of_alias_name(word);