From: epg <> Date: Sun, 25 Apr 2004 22:30:15 +0000 (+0000) Subject: (get_headers): Check errors on open. X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/f62c132a889befa8382fbab889df207b5a8e9a67?hp=b0df48d59aff25c30bd59cbe89d4646f1f2ebd34 (get_headers): Check errors on open. --- diff --git a/minc b/minc index e0c5c73..d008d66 100755 --- a/minc +++ b/minc @@ -432,7 +432,7 @@ sub get_headers { my $fieldname; # unmolested header name my $contents; # contents of header - open(MSG, $msg); + open(MSG, $msg) or die("open(MSG, $msg): $!"); while () { chomp; if (length == 0) {