diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-11-12 23:26:42 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-11-12 23:26:42 +0000 |
commit | 386460bb492b5599883ca715680c00e5fa338565 (patch) | |
tree | 9ad15fce17a313d1ee0a166f4b1b524fdc2b8988 /usr.sbin/pkg_add/OpenBSD/PackingList.pm | |
parent | fb2679a1bd3a7946d8cc733d8412c710cf416237 (diff) |
store a ref to cwd instead of cwd itself, allowing it to be shared.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingList.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingList.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm index 966456e1f32..b144a3c9e9c 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingList.pm,v 1.34 2004/11/11 15:32:28 espie Exp $ +# $OpenBSD: PackingList.pm,v 1.35 2004/11/12 23:26:41 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -25,11 +25,12 @@ use OpenBSD::PackageInfo; sub new { my $class = shift; + my $o = '.'; bless {state => {default_owner=>'root', default_group=>'bin', default_mode=> 0444, - cwd=>'.'} }, $class; + cwd=>\$o} }, $class; } sub read |