From: Joey Hess Date: Thu, 11 Dec 2008 20:11:19 +0000 (-0500) Subject: vipe: Avoid dying on empty input. Thanks, Anders Kaseorg Closes: #508491 X-Git-Tag: 0.34~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=931de139ed875e6c593d0bdb692fccf181da46bb;p=moreutils vipe: Avoid dying on empty input. Thanks, Anders Kaseorg Closes: #508491 --- diff --git a/debian/changelog b/debian/changelog index 5c8ae6e..f0a4149 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +moreutils (0.34) UNRELEASED; urgency=low + + * vipe: Avoid dying on empty input. Thanks, Anders Kaseorg + Closes: #508491 + + -- Joey Hess Thu, 11 Dec 2008 15:10:56 -0500 + moreutils (0.33) unstable; urgency=low * Support installing moreutils into prefixes other than /usr (Evan Broder) diff --git a/vipe b/vipe index 8cee2b1..4874fe3 100755 --- a/vipe +++ b/vipe @@ -43,7 +43,7 @@ $/=undef; my ($fh, $tmp)=tempfile(); die "cannot create tempfile" unless $fh; -print $fh || die "write temp: $!"; +print ($fh ) || die "write temp: $!"; close $fh; close STDIN; open(STDIN, " || die "write failure: $!"; +print (OUT ) || die "write failure: $!"; close IN; unlink($tmp);