Vladimir N. Oleynik writes:
Hi, Glenn. Current CVS "ls" applet have small problem: some options ignoring. Last patch attached ;-) --w vodz
This commit is contained in:
@ -938,6 +938,7 @@ static const unsigned opt_flags[] = {
|
|||||||
#ifdef CONFIG_SELINUX
|
#ifdef CONFIG_SELINUX
|
||||||
LIST_MODEBITS|LIST_NLINKS|LIST_CONTEXT|LIST_SIZE|LIST_DATE_TIME, /* K */
|
LIST_MODEBITS|LIST_NLINKS|LIST_CONTEXT|LIST_SIZE|LIST_DATE_TIME, /* K */
|
||||||
#endif
|
#endif
|
||||||
|
(1U<<31)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1000,8 +1001,7 @@ extern int ls_main(int argc, char **argv)
|
|||||||
#else
|
#else
|
||||||
opt = bb_getopt_ulflags(argc, argv, ls_options);
|
opt = bb_getopt_ulflags(argc, argv, ls_options);
|
||||||
#endif
|
#endif
|
||||||
/* 16 = maximum options minus tabsize and screewn width */
|
for (i = 0; opt_flags[i] != (1U<<31); i++) {
|
||||||
for (i = 0; i < 16; i++) {
|
|
||||||
if (opt & (1 << i)) {
|
if (opt & (1 << i)) {
|
||||||
unsigned int flags = opt_flags[i];
|
unsigned int flags = opt_flags[i];
|
||||||
if (flags & LIST_MASK_TRIGGER) {
|
if (flags & LIST_MASK_TRIGGER) {
|
||||||
|
Reference in New Issue
Block a user