Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/findutils/xargs.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/findutils/xargs.c
r2725 r3232 15 15 * http://www.opengroup.org/onlinepubs/007904975/utilities/xargs.html 16 16 */ 17 18 //applet:IF_XARGS(APPLET_NOEXEC(xargs, xargs, _BB_DIR_USR_BIN, _BB_SUID_DROP, xargs))19 20 //kbuild:lib-$(CONFIG_XARGS) += xargs.o21 17 22 18 //config:config XARGS … … 59 55 //config: are not special. 60 56 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 61 61 #include "libbb.h" 62 62 … … 90 90 } FIX_ALIASING; 91 91 #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) 93 95 94 96 … … 348 350 //usage:#define xargs_full_usage "\n\n" 349 351 //usage: "Run PROG on every item given by stdin\n" 350 //usage: "\nOptions:"351 352 //usage: IF_FEATURE_XARGS_SUPPORT_CONFIRMATION( 352 353 //usage: "\n -p Ask user whether to run each command" … … 413 414 INIT_G(); 414 415 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 416 422 opt = getopt32(argv, OPTION_STR, &max_args, &max_chars, &G.eof_str, &G.eof_str); 417 423
Note:
See TracChangeset
for help on using the changeset viewer.