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/coreutils/uuencode.c

    r1765 r2725  
    66 *  Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
    77 *
    8  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
     8 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    99 */
    1010
     
    1212
    1313enum {
    14     SRC_BUF_SIZE = 45,  /* This *MUST* be a multiple of 3 */
     14    SRC_BUF_SIZE = 15*3,  /* This *MUST* be a multiple of 3 */
    1515    DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3),
    1616};
    1717
    18 int uuencode_main(int argc, char **argv);
    19 int uuencode_main(int argc, char **argv)
     18int uuencode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     19int uuencode_main(int argc UNUSED_PARAM, char **argv)
    2020{
    2121    struct stat stat_buf;
     
    3333    }
    3434    argv += optind;
    35     if (argc == optind + 2) {
    36         src_fd = xopen(*argv, O_RDONLY);
     35    if (argv[1]) {
     36        src_fd = xopen(argv[0], O_RDONLY);
    3737        fstat(src_fd, &stat_buf);
    3838        mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
     
    4949        /* Encode the buffer we just read in */
    5050        bb_uuencode(dst_buf, src_buf, size, tbl);
    51         putchar('\n');
     51        bb_putchar('\n');
    5252        if (tbl == bb_uuenc_tbl_std) {
    53             putchar(tbl[size]);
     53            bb_putchar(tbl[size]);
    5454        }
    5555        fflush(stdout);
Note: See TracChangeset for help on using the changeset viewer.