diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 2004-03-18 16:49:51 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 2004-03-18 16:49:51 +0000 |
commit | b280a84996ca51f832d2eeedffc3562322beac66 (patch) | |
tree | 3b01fe2a59771fd8614cbc1756bc9469442e7f73 /usr.sbin/pkg_add | |
parent | f1f0c6610d14c998b6e064e8a08ca543fd450587 (diff) |
When using an install prefix with -B to install packages, and the packing
list uses @owner, @group and/or @mode, setting these did not use the
install prefix. ok deraadt@
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/pkg_add | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add index 4bd73da5214..06f5c590918 100644 --- a/usr.sbin/pkg_add/pkg_add +++ b/usr.sbin/pkg_add/pkg_add @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_add,v 1.28 2004/03/07 19:29:08 espie Exp $ +# $OpenBSD: pkg_add,v 1.29 2004/03/18 16:49:50 tholo Exp $ # # Copyright (c) 2003 Marc Espie. # @@ -76,14 +76,14 @@ sub install return if $not; $file->create(); if (defined $self->{owner} && defined $self->{group}) { - system('chown', $self->{owner}.':'.$self->{group}, $self->fullname()); + system('chown', $self->{owner}.':'.$self->{group}, $destdir.$self->fullname()); } elsif (defined $self->{owner}) { - system('chown', $self->{owner}, $self->fullname()); + system('chown', $self->{owner}, $destdir.$self->fullname()); } elsif (defined $self->{group}) { - system('chown', ':'.$self->{group}, $self->fullname()); + system('chown', ':'.$self->{group}, $destdir.$self->fullname()); } if (defined $self->{mode}) { - system('chmod', $self->{mode}, $self->fullname()); + system('chmod', $self->{mode}, $destdir.$self->fullname()); } } |