diff options
author | Ron Yorston <rmy@pobox.com> | 2019-01-05 21:48:44 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-01-06 08:09:59 +0000 |
commit | f192e653963344fdffa88d47bb16d40d6e63081f (patch) | |
tree | 102c746c2b92bbbf14d7223061f274bcece35cd9 | |
parent | 17e53de99a31a4d8e1b6145899cb68023b2b58db (diff) | |
download | busybox-w32-f192e653963344fdffa88d47bb16d40d6e63081f.tar.gz busybox-w32-f192e653963344fdffa88d47bb16d40d6e63081f.tar.bz2 busybox-w32-f192e653963344fdffa88d47bb16d40d6e63081f.zip |
xargs: fix 'xargs -sNUM' tests
The tests for 'xargs -sNUM' fail due to a missing newline unless
it's output using fprintf rather than bb_putchar_stderr.
-rw-r--r-- | findutils/xargs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c index 2ce5634ca..6df8a035d 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c | |||
@@ -821,7 +821,11 @@ int xargs_main(int argc UNUSED_PARAM, char **argv) | |||
821 | fmt = " %s"; | 821 | fmt = " %s"; |
822 | } | 822 | } |
823 | if (!(opt & OPT_INTERACTIVE)) | 823 | if (!(opt & OPT_INTERACTIVE)) |
824 | #if !ENABLE_PLATFORM_MINGW32 | ||
824 | bb_putchar_stderr('\n'); | 825 | bb_putchar_stderr('\n'); |
826 | #else | ||
827 | fprintf(stderr, "\n"); | ||
828 | #endif | ||
825 | } | 829 | } |
826 | 830 | ||
827 | if (!(opt & OPT_INTERACTIVE) || xargs_ask_confirmation()) { | 831 | if (!(opt & OPT_INTERACTIVE) || xargs_ask_confirmation()) { |