diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2003-10-31 09:30:11 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2003-10-31 09:30:11 +0000 |
commit | 1ba775e5d6d04836ba897229e0ee65610c393937 (patch) | |
tree | e77f2a6e69a6368a4c75b30acb2d17ea0aa55341 | |
parent | c4a21dc23a6a2b5c8a859e8aa1a970aa992be160 (diff) |
Fix typo (ouch) and logic order (chown before chmod)
Still a very good idea to mark setXid and special owners
in packing-lists (as make update-plist does anyways...)
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Ustar.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Ustar.pm b/usr.sbin/pkg_add/OpenBSD/Ustar.pm index 59c0365e946..38b9f862cd0 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.1 2003/10/16 17:43:34 espie Exp $ +# $OpenBSD: Ustar.pm,v 1.2 2003/10/31 09:30:10 espie Exp $ # # Copyright (c) 2002 Marc Espie. # @@ -142,7 +142,7 @@ sub next $uid = oct($uid); $gid = oct($gid); $uid = name2uid($uname, $uid); - $gid = name2gid($uname, $gid); + $gid = name2gid($gname, $gid); $mtime = oct($mtime); unless ($prefix =~ m/^\0/) { $prefix =~ s/\0*$//; @@ -186,8 +186,8 @@ package OpenBSD::Ustar::Object; sub set_modes { my $self = shift; - chmod $self->{mode}, $self->{name}; chown $self->{uid}, $self->{gid}, $self->{name}; + chmod $self->{mode}, $self->{name}; } sub make_basedir |