Skip to content

Commit

Permalink
[backend] move hardcoded 'collect_errors' flag from cpio_sender to re…
Browse files Browse the repository at this point in the history
…ply_cpio
  • Loading branch information
mlschroe committed Jun 4, 2018
1 parent 9f1f68c commit 4ae2474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/BSHTTP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ sub create_writer {
sub cpio_sender {
my ($param, $sock) = @_;
my $writer = create_writer($sock, $param->{'chunked'});
BSCpio::writecpio($writer, $param->{'cpiofiles'}, 'collecterrors' => '.errors', 'follow' => $param->{'follow'});
BSCpio::writecpio($writer, $param->{'cpiofiles'}, 'collecterrors' => $param->{'collecterrors'}, 'follow' => $param->{'follow'});
return '';
}

Expand Down
2 changes: 1 addition & 1 deletion src/backend/BSServer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ sub reply_stream {

sub reply_cpio {
my ($files, @hdrs) = @_;
my $param = {'cpiofiles' => $files, 'chunked' => 1};
my $param = {'cpiofiles' => $files, 'chunked' => 1, 'collecterrors' => '.errors'};
reply_stream(\&BSHTTP::cpio_sender, $param, 'Content-Type: application/x-cpio', 'Transfer-Encoding: chunked', @hdrs);
}

Expand Down

0 comments on commit 4ae2474

Please sign in to comment.