commit | 9501bc7da5f560f3dae6f6a1d2b11efa9d5dfe47 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sun May 26 13:53:41 2019 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sun May 26 13:53:41 2019 +0200 |
tree | 60703d14c55bc5b1503184193137bba77c6072f2 | |
parent | b2c123d484dbe261758f27ced213f4649173803b [diff] [blame] |
ls: fix SEGV when --color is used and ENABLE_LS_COLOR=n Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/coreutils/ls.c b/coreutils/ls.c index b2adb0c..e5375a6 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c
@@ -1086,7 +1086,7 @@ 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