From 04872c57839c2ff93de2d6c70fe4087043d3e4d1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 27 Oct 2015 16:46:00 +0000 Subject: [PATCH] srcdump: Report tar output to stderr, not stdout Signed-off-by: Ian Jackson --- cgi-auth-flexible.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgi-auth-flexible.pm b/cgi-auth-flexible.pm index a141877..d3d9517 100644 --- a/cgi-auth-flexible.pm +++ b/cgi-auth-flexible.pm @@ -387,7 +387,8 @@ sub srcdump_dirscan_prepare ($$) { close $reportfh or die $!; srcdump_install($c,$v, $dumpdir, 'licence', 'text/plain'); $!=0; - my @cmd = (qw(tar -zvvcf), "$dumpdir/source.tmp", + my @cmd = (qw(sh -ec), 'exec >&2 "$@"', qw(x), + qw(tar -zvvcf), "$dumpdir/source.tmp", "-C", $dumpdir, qw( --), @srcfiles); my $r = system(@cmd); if ($r) { -- 2.30.2