[BusyBox-cvs] busybox/coreutils ls.c,1.103,1.104
Erik Andersen
andersen at busybox.net
Thu Feb 5 13:52:05 UTC 2004
Update of /var/cvs/busybox/coreutils
In directory nail:/tmp/cvs-serv8093/coreutils
Modified Files:
ls.c
Log Message:
Vladimir N. Oleynik writes:
Hi, Glenn.
Current CVS "ls" applet have small problem: some options
ignoring. Last patch attached ;-)
--w
vodz
Index: ls.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/ls.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- ls.c 18 Jan 2004 05:41:30 -0000 1.103
+++ ls.c 5 Feb 2004 13:52:03 -0000 1.104
@@ -938,6 +938,7 @@
#ifdef CONFIG_SELINUX
LIST_MODEBITS|LIST_NLINKS|LIST_CONTEXT|LIST_SIZE|LIST_DATE_TIME, /* K */
#endif
+ (1U<<31)
};
@@ -1000,8 +1001,7 @@
#else
opt = bb_getopt_ulflags(argc, argv, ls_options);
#endif
- /* 16 = maximum options minus tabsize and screewn width */
- for (i = 0; i < 16; i++) {
+ for (i = 0; opt_flags[i] != (1U<<31); i++) {
if (opt & (1 << i)) {
unsigned int flags = opt_flags[i];
if (flags & LIST_MASK_TRIGGER) {
More information about the busybox-cvs
mailing list