From: espie Date: Sat, 28 May 2022 23:20:28 +0000 (+0000) Subject: EOF does not result in an error code, as spotted by stsp@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=897b02f3fd3ebd841daedc38c6620672a4e21628;p=openbsd EOF does not result in an error code, as spotted by stsp@ --- diff --git a/usr.sbin/pkg_add/OpenBSD/Ustar.pm b/usr.sbin/pkg_add/OpenBSD/Ustar.pm index 8fb2e3e3155..16434ef4c69 100644 --- a/usr.sbin/pkg_add/OpenBSD/Ustar.pm +++ b/usr.sbin/pkg_add/OpenBSD/Ustar.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Ustar.pm,v 1.90 2022/05/08 13:31:41 espie Exp $ +# $OpenBSD: Ustar.pm,v 1.91 2022/05/28 23:20:28 espie Exp $ # # Copyright (c) 2002-2014 Marc Espie # @@ -115,7 +115,7 @@ sub skip $self->fatal("Error while skipping archive: #1", $!); } if ($actual == 0) { - $self->fatal("Premature end of archive in header: #1", $!); + $self->fatal("Premature end of archive in header"); } $self->{swallow} -= $actual; }