From 897b02f3fd3ebd841daedc38c6620672a4e21628 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 28 May 2022 23:20:28 +0000 Subject: [PATCH] EOF does not result in an error code, as spotted by stsp@ --- usr.sbin/pkg_add/OpenBSD/Ustar.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1