diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-10-22 15:11:05 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-10-22 15:11:05 +0100 |
commit | 8922b4bef17886da65d1ac33eede20ade9fa4197 (patch) | |
tree | f3bc470c49ad10f51428a13f014cf276cc50c4f9 /dgit | |
parent | 41e0ec2b26cba9b3d4016b195ec8795ca1bd40f4 (diff) |
fix protocol_receive_file not to use STDIN
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -223,9 +223,9 @@ sub protocol_receive_file ($$) { my ($y,$l) = protocol_expect { m/^data-block (.*})$|data-end$/; length $1 ? (1,$1) : (0); - } \*STDIN; + } $fh; last unless $y; - my $d = protocol_read_bytes \*STDIN, $1; + my $d = protocol_read_bytes $fh, $1; print PF $d or die $!; } printdebug "received into $ourfn\n"; |