Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/e2fsprogs/lsattr.c

    r1765 r2725  
    4646    if (option_mask32 & OPT_PF_LONG) {
    4747        printf("%-28s ", name);
    48         print_flags(stdout, fsflags, PFOPT_LONG);
    49         puts("");
     48        print_e2flags(stdout, fsflags, PFOPT_LONG);
     49        bb_putchar('\n');
    5050    } else {
    51         print_flags(stdout, fsflags, 0);
     51        print_e2flags(stdout, fsflags, 0);
    5252        printf(" %s\n", name);
    5353    }
     
    5858}
    5959
    60 static int lsattr_dir_proc(const char *dir_name, struct dirent *de,
    61                void *private)
     60static int FAST_FUNC lsattr_dir_proc(const char *dir_name,
     61        struct dirent *de,
     62        void *private UNUSED_PARAM)
    6263{
    6364    struct stat st;
     
    7576            printf("\n%s:\n", path);
    7677            iterate_on_dir(path, lsattr_dir_proc, NULL);
    77             puts("");
     78            bb_putchar('\n');
    7879        }
    7980    }
     
    9697}
    9798
    98 int lsattr_main(int argc, char **argv);
    99 int lsattr_main(int argc, char **argv)
     99int lsattr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     100int lsattr_main(int argc UNUSED_PARAM, char **argv)
    100101{
    101102    getopt32(argv, "Radlv");
     
    103104
    104105    if (!*argv)
    105         lsattr_args(".");
    106     else {
    107         while (*argv)
    108             lsattr_args(*argv++);
    109     }
     106        *--argv = (char*)".";
     107    do lsattr_args(*argv++); while (*argv);
    110108
    111109    return EXIT_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.