diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-26 13:53:41 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-26 13:53:41 +0200 |
commit | 9501bc7da5f560f3dae6f6a1d2b11efa9d5dfe47 (patch) | |
tree | 60703d14c55bc5b1503184193137bba77c6072f2 | |
parent | b2c123d484dbe261758f27ced213f4649173803b (diff) | |
download | busybox-w32-9501bc7da5f560f3dae6f6a1d2b11efa9d5dfe47.tar.gz busybox-w32-9501bc7da5f560f3dae6f6a1d2b11efa9d5dfe47.tar.bz2 busybox-w32-9501bc7da5f560f3dae6f6a1d2b11efa9d5dfe47.zip |
ls: fix SEGV when --color is used and ENABLE_LS_COLOR=n
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index b2adb0c06..e5375a61a 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -1086,7 +1086,7 @@ int ls_main(int argc UNUSED_PARAM, char **argv) | |||
1086 | static const char ls_longopts[] ALIGN1 = | 1086 | static const char ls_longopts[] ALIGN1 = |
1087 | "full-time\0" No_argument "\xff" | 1087 | "full-time\0" No_argument "\xff" |
1088 | "group-directories-first\0" No_argument "\xfe" | 1088 | "group-directories-first\0" No_argument "\xfe" |
1089 | "color\0" Optional_argument "\xfd" | 1089 | IF_FEATURE_LS_COLOR("color\0" Optional_argument "\xfd") |
1090 | ; | 1090 | ; |
1091 | #endif | 1091 | #endif |
1092 | 1092 | ||