Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/tee.c


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/coreutils/tee.c

    r3232 r3621  
    2424
    2525#include "libbb.h"
     26#include "common_bufsiz.h"
    2627
    2728int tee_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     
    3839    ssize_t c;
    3940# define buf bb_common_bufsiz1
     41    setup_common_bufsiz();
    4042#else
    4143    int c;
     
    8082
    8183#if ENABLE_FEATURE_TEE_USE_BLOCK_IO
    82     while ((c = safe_read(STDIN_FILENO, buf, sizeof(buf))) > 0) {
     84    while ((c = safe_read(STDIN_FILENO, buf, COMMON_BUFSIZE)) > 0) {
    8385        fp = files;
    8486        do
Note: See TracChangeset for help on using the changeset viewer.