summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-12-10 17:45:12 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-12-10 17:45:12 +0000
commitf0090c27503ee68359033566a39ffdc66529ce86 (patch)
tree9501692705790c7ef313101e4c23a2deade42d5f
parentcf9f1157b3ad2a04b81704c161a99428b25b04b2 (diff)
stamp files and directories.
okay sturm@
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Ustar.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Ustar.pm b/usr.sbin/pkg_add/OpenBSD/Ustar.pm
index 38b9f862cd0..0d021992913 100644
--- a/usr.sbin/pkg_add/OpenBSD/Ustar.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Ustar.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: Ustar.pm,v 1.2 2003/10/31 09:30:10 espie Exp $
+# $OpenBSD: Ustar.pm,v 1.3 2003/12/10 17:45:11 espie Exp $
#
# Copyright (c) 2002 Marc Espie.
#
@@ -188,6 +188,7 @@ sub set_modes
my $self = shift;
chown $self->{uid}, $self->{gid}, $self->{name};
chmod $self->{mode}, $self->{name};
+ utime $self->{mtime}, $self->{mtime}, $self->{name};
}
sub make_basedir
@@ -259,7 +260,6 @@ sub create
print "Can't write to ", $self->{name}, "\n";
return;
}
- $self->SUPER::set_modes();
my $buffer;
my $toread = $self->{size};
while ($toread > 0) {
@@ -271,6 +271,7 @@ sub create
$toread -= $maxread;
}
$out->close();
+ $self->SUPER::set_modes();
}
sub isFile() { 1 }