chiark / gitweb /
srcdump: Report tar output to stderr, not stdout
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 27 Oct 2015 16:46:00 +0000 (16:46 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 27 Oct 2015 17:15:37 +0000 (17:15 +0000)
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
cgi-auth-flexible.pm

index a141877..d3d9517 100644 (file)
@@ -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) {