diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-05 07:59:53 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-05 07:59:53 +0000 |
commit | 08ef65f229c01922db0de0ef22a3d5d12270e999 (patch) | |
tree | 30814cbcb4cc2d3a2210999366725dd85d2990fe /usr.sbin | |
parent | a2f7c79d0a135d45e2d0572d29b4ccbc96a13f15 (diff) |
have subst return a handle to written file
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Subst.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Subst.pm b/usr.sbin/pkg_add/OpenBSD/Subst.pm index a591b803c7d..19674f91c90 100644 --- a/usr.sbin/pkg_add/OpenBSD/Subst.pm +++ b/usr.sbin/pkg_add/OpenBSD/Subst.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Subst.pm,v 1.9 2010/05/10 09:17:55 espie Exp $ +# $OpenBSD: Subst.pm,v 1.10 2010/06/05 07:59:52 espie Exp $ # # Copyright (c) 2008 Marc Espie <espie@openbsd.org> # @@ -92,6 +92,7 @@ sub copy my ($self, $srcname, $destname) = @_; open my $dest, '>', $destname or die "can't open $destname"; $self->copy_fh($srcname, $dest); + return $dest; } sub has_fragment |