Michael Sternberg writes:
authorEric Andersen <andersen@codepoet.org>
Mon, 14 Jul 2003 19:20:46 +0000 (19:20 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 14 Jul 2003 19:20:46 +0000 (19:20 -0000)
    Latest BusyBox from CVS (Jul 7 2003).
    File coreutils/ls.c
    "if" at line 970 should be enclosed in #ifdef CONFIG_FEATURE_LS_SORTFILES
    "if" at line 976 should be enclosed in #ifdef CONFIG_FEATURE_LS_TIMESTAMPS

coreutils/ls.c

index 6245361e9ede5f42bc2d3eaa0d913a918092ddfd..a7f036b61c0b8520d1211f5c94cb377987de8f13 100644 (file)
@@ -967,15 +967,19 @@ extern int ls_main(int argc, char **argv)
                        if (flags & STYLE_MASK_TRIGGER) {
                                all_fmt &= ~STYLE_MASK;
                        }
+#ifdef CONFIG_FEATURE_LS_SORTFILES
                        if (flags & SORT_MASK_TRIGGER) {
                                all_fmt &= ~SORT_MASK;
                        }
+#endif
                        if (flags & DISP_MASK_TRIGGER) {
                                all_fmt &= ~DISP_MASK;
                        }
+#ifdef CONFIG_FEATURE_LS_TIMESTAMPS
                        if (flags & TIME_MASK_TRIGGER) {
                                all_fmt &= ~TIME_MASK;
                        }
+#endif
                        if (flags & LIST_CONTEXT) {
                                all_fmt |= STYLE_SINGLE;
                        }