Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/findutils/xargs.c


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/findutils/xargs.c

    r2725 r3232  
    1515 * http://www.opengroup.org/onlinepubs/007904975/utilities/xargs.html
    1616 */
    17 
    18 //applet:IF_XARGS(APPLET_NOEXEC(xargs, xargs, _BB_DIR_USR_BIN, _BB_SUID_DROP, xargs))
    19 
    20 //kbuild:lib-$(CONFIG_XARGS) += xargs.o
    2117
    2218//config:config XARGS
     
    5955//config:     are not special.
    6056
     57//applet:IF_XARGS(APPLET_NOEXEC(xargs, xargs, BB_DIR_USR_BIN, BB_SUID_DROP, xargs))
     58
     59//kbuild:lib-$(CONFIG_XARGS) += xargs.o
     60
    6161#include "libbb.h"
    6262
     
    9090} FIX_ALIASING;
    9191#define G (*(struct globals*)&bb_common_bufsiz1)
    92 #define INIT_G() do { } while (0)
     92#define INIT_G() do { \
     93    G.eof_str = NULL; /* need to clear by hand because we are NOEXEC applet */ \
     94} while (0)
    9395
    9496
     
    348350//usage:#define xargs_full_usage "\n\n"
    349351//usage:       "Run PROG on every item given by stdin\n"
    350 //usage:     "\nOptions:"
    351352//usage:    IF_FEATURE_XARGS_SUPPORT_CONFIRMATION(
    352353//usage:     "\n    -p  Ask user whether to run each command"
     
    413414    INIT_G();
    414415
    415     G.eof_str = NULL;
     416#if ENABLE_DESKTOP && ENABLE_LONG_OPTS
     417    /* For example, Fedora's build system uses --no-run-if-empty */
     418    applet_long_options =
     419        "no-run-if-empty\0" No_argument "r"
     420        ;
     421#endif
    416422    opt = getopt32(argv, OPTION_STR, &max_args, &max_chars, &G.eof_str, &G.eof_str);
    417423
Note: See TracChangeset for help on using the changeset viewer.