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/old_e2fsprogs/mke2fs.c

    r1765 r2725  
    66 *  2003, 2004, 2005 by Theodore Ts'o.
    77 *
    8  * This file may be redistributed under the terms of the GNU Public
    9  * License.
     8 * Licensed under GPLv2, see file LICENSE in this source tree.
    109 */
    1110
     
    177176    if (retval) {
    178177        va_start(ap, fmt);
    179         fprintf(stderr,"\nCould not ");
     178        fprintf(stderr, "\nCould not ");
    180179        vfprintf(stderr, fmt, ap);
    181180        fprintf(stderr, "\n");
     
    210209    if (retval) {
    211210        va_start(ap, fmt);
    212         fprintf(stderr,"\nWarning: ");
     211        fprintf(stderr, "\nWarning: ");
    213212        vfprintf(stderr, fmt, ap);
    214213        fprintf(stderr, "\n");
     
    226225    errcode_t   retval;
    227226
    228     f = xfopen(bad_blocks_file, "r");
     227    f = xfopen_for_read(bad_blocks_file);
    229228    retval = ext2fs_read_bb_FILE(fs, f, bb_list, invalid_block);
    230229    fclose (f);
     
    247246    f = popen(buf, "r");
    248247    if (!f) {
    249         bb_perror_msg_and_die("cannot run '%s'", buf);
     248        bb_perror_msg_and_die("can't run '%s'", buf);
    250249    }
    251250    retval = ext2fs_read_bb_FILE(fs, f, bb_list, invalid_block);
     
    642641            s->s_inodes_per_group);
    643642    if (fs->group_desc_count == 1) {
    644         puts("");
     643        bb_putchar('\n');
    645644        return;
    646645    }
     
    677676    }
    678677
    679     if((sb->s_creator_os = e2p_string2os(os)) >= 0) {
     678    if ((sb->s_creator_os = e2p_string2os(os)) >= 0) {
    680679        return 1;
    681680    } else if (!strcasecmp("GNU", os)) {
     
    801800    ext2_ino_t  num_inodes = 0;
    802801    errcode_t   retval;
    803     char *      extended_opts = 0;
    804     const char *    fs_type = 0;
     802    char *      extended_opts = NULL;
     803    const char *    fs_type = NULL;
    805804    blk_t       dev_size;
    806805    long        sysval;
     
    897896            break;
    898897        case 'r':
    899             param.s_rev_level = xatoi_u(optarg);
     898            param.s_rev_level = xatoi_positive(optarg);
    900899            if (param.s_rev_level == EXT2_GOOD_OLD_REV) {
    901900                param.s_feature_incompat = 0;
     
    914913#ifdef EXT2_DYNAMIC_REV
    915914        case 'I':
    916             inode_size = xatoi_u(optarg);
     915            inode_size = xatoi_positive(optarg);
    917916            break;
    918917#endif
    919918        case 'N':
    920             num_inodes = xatoi_u(optarg);
     919            num_inodes = xatoi_positive(optarg);
    921920            break;
    922921        case 'v':
     
    11881187    if (ENABLE_FEATURE_CLEAN_UP)
    11891188        atexit(mke2fs_clean_up);
    1190     if(!PRS(argc, argv))
     1189    if (!PRS(argc, argv))
    11911190        return 0;
    11921191
     
    13071306                         NULL, &ret_blk, NULL);
    13081307
    1309         mke2fs_warning_msg(retval, "cannot zero block %u at end of filesystem", ret_blk);
     1308        mke2fs_warning_msg(retval, "can't zero block %u at end of filesystem", ret_blk);
    13101309        write_inode_tables(fs);
    13111310        create_root_dir(fs);
Note: See TracChangeset for help on using the changeset viewer.