summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Ustar.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-12-24 09:04:15 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-12-24 09:04:15 +0000
commitfad9aa48fa7616bef3da618e4d69e10390f368af (patch)
tree88efd00c61e7bb289cb682ca2ae56ea1399d76c9 /usr.sbin/pkg_add/OpenBSD/Ustar.pm
parente8aa660d2596713d58d74612b0c701258b61f0b2 (diff)
handle failures from ports tree with more care.
this does avoid infinite loops in case of wrong plists. necessary since print-plist-with-depends CAN fail...
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Ustar.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Ustar.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Ustar.pm b/usr.sbin/pkg_add/OpenBSD/Ustar.pm
index 41cf8ea35d0..da70ae5be0a 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.65 2010/10/02 13:36:56 espie Exp $
+# $OpenBSD: Ustar.pm,v 1.66 2010/12/24 09:04:14 espie Exp $
#
# Copyright (c) 2002-2007 Marc Espie <espie@openbsd.org>
#
@@ -403,7 +403,7 @@ sub set_modes
chown $self->{uid}, $self->{gid}, $self->{destdir}.$self->name;
chmod $self->{mode}, $self->{destdir}.$self->name;
if (defined $self->{mtime} || defined $self->{atime}) {
- utime $self->{atime} // time, $self->{mtime} // time,
+ utime $self->{atime} // time, $self->{mtime} // time,
$self->{destdir}.$self->name;
}
}