Got rid of a bug that mixed stuff from STDERR into STDOUT.
authorFlavio Poletti <flavio@polettix.it>
Wed, 10 Sep 2008 00:06:30 +0000 (10 02:06 +0200)
committerFlavio Poletti <flavio@polettix.it>
Wed, 10 Sep 2008 00:06:30 +0000 (10 02:06 +0200)
remote

diff --git a/remote b/remote
index dc106ab..03ed2b2 100755 (executable)
--- a/remote
+++ b/remote
@@ -305,9 +305,12 @@ sub _interact_with_program {
             $from_select->remove($reader);
             next;
          }
-         warn "got something from tar's STDERR: $buffer..."
-           if $reader == $err;
-         push @result, $buffer;
+         if ($reader == $err) {
+            warn "got something from tar's STDERR: $buffer...";
+         }
+         else {
+            push @result, $buffer;
+         }
       } ## end for my $reader ($from_select...
    } ## end while ($from_select->exists...
    die 'could not pipe all data to tar' if $in;