summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-01-05 23:11:25 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-01-05 23:11:25 +0000
commitc53d7923f0eb72e2d93f047ca056342644e39cae (patch)
tree753d516be26dd8a7c38be0faf3d62134e317f902 /usr.sbin
parent3cf240da032fa849562ae1e180caa7bda835608d (diff)
don't whine about octal numbers > 2^32. They're not portable, but
they work on all OpenBSD platforms. Shuts up warning noticed by naddy@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Ustar.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Ustar.pm b/usr.sbin/pkg_add/OpenBSD/Ustar.pm
index 66e21531fd7..488d10e370f 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.72 2012/04/28 12:00:10 espie Exp $
+# $OpenBSD: Ustar.pm,v 1.73 2014/01/05 23:11:24 espie Exp $
#
# Copyright (c) 2002-2007 Marc Espie <espie@openbsd.org>
#
@@ -159,7 +159,10 @@ sub next
$gid = oct($gid);
$uid = $uidcache->lookup($uname, $uid);
$gid = $gidcache->lookup($gname, $gid);
+ {
+ no warnings;
$mtime = oct($mtime);
+ }
unless ($prefix =~ m/^\0/o) {
$prefix =~ s/\0*$//o;
$name = "$prefix/$name";