← Commit list

9501bc7da

Denys Vlasenko
Denys Vlasenko
2019-05-26
SUCCESS Duration: 161s

Subject

ls: fix SEGV when --color is used and ENABLE_LS_COLOR=n

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 →

coreutils/ls.c+1 -1
@@ -1086,7 +1086,7 @@ int ls_main(int argc UNUSED_PARAM, char **argv)
static const char ls_longopts[] ALIGN1 =
"full-time\0" No_argument "\xff"
"group-directories-first\0" No_argument "\xfe"
- "color\0" Optional_argument "\xfd"
+ IF_FEATURE_LS_COLOR("color\0" Optional_argument "\xfd")
;
#endif