From: espie Date: Sun, 10 Aug 2014 10:03:46 +0000 (+0000) Subject: Ouch... fuck cvs X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ecd7f40b0ad9f7228a032b3f54154756108c0057;p=openbsd Ouch... fuck cvs --- diff --git a/usr.sbin/pkg_add/OpenBSD/Ustar.pm b/usr.sbin/pkg_add/OpenBSD/Ustar.pm index a0ab18c070b..bc8df81cfd9 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.81 2014/08/10 10:01:03 espie Exp $ +# $OpenBSD: Ustar.pm,v 1.82 2014/08/10 10:03:46 espie Exp $ # # Copyright (c) 2002-2014 Marc Espie # @@ -313,7 +313,7 @@ sub pack_header sprintf("%07o", $entry->{uid}), sprintf("%07o", $entry->{gid}), sprintf("%011o", $size), - sprintf("%011o", $entry->{mtime}), + sprintf("%011o", $entry->{mtime} // 0), $cksum, $type, $linkname, @@ -488,8 +488,10 @@ package OpenBSD::Ustar::Object; sub recheck_owner { my $entry = shift; - $entry->{uid} //= $OpenBSD: Ustar.pm,v 1.81 2014/08/10 10:01:03 espie Exp $entry->{uname}); - $entry->{gid} //= $OpenBSD: Ustar.pm,v 1.81 2014/08/10 10:01:03 espie Exp $entry->{gname}); + $entry->{uid} //= $OpenBSD::Ustar::uidcache + ->lookup($entry->{uname}); + $entry->{gid} //= $OpenBSD::Ustar::gidcache + ->lookup($entry->{gname}); } sub fatal