Hi,

Disable color long option at ls.c:1089 when ENABLE_LS_COLOR=n.

Marco
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)
 	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
 
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to