diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-05 10:50:05 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-05 10:50:05 +0000 |
commit | f0382850a6961a3d300049b6d4171ba30e52598b (patch) | |
tree | 824d7b06eb4abdaf6e87e569e1d223515eb2590a /usr.sbin | |
parent | afe5408636db5a0076bbdf48bbb0580076a02239 (diff) |
ditch extra param to copy_subst, now that it's constant.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 31a25ef6159..628fbe689b6 100644 --- a/usr.sbin/pkg_add/pkg_create +++ b/usr.sbin/pkg_add/pkg_create @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_create,v 1.92 2007/05/05 10:48:39 espie Exp $ +# $OpenBSD: pkg_create,v 1.93 2007/05/05 10:50:04 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -332,8 +332,8 @@ sub copy_subst_fh } sub copy_subst { - my ($srcname, $mode, $destname) = @_; - open my $dest, $mode, $destname or die "can't open $destname"; + my ($srcname, $destname) = @_; + open my $dest, '>', $destname or die "can't open $destname"; copy_subst_fh($srcname, $dest); } @@ -423,7 +423,7 @@ sub add_special_file my ($plist, $name, $infodir, $opt) = @_; if (defined $opt) { OpenBSD::PackingElement::File->add($plist, $name); - copy_subst($opt, '>', $infodir.$name) if defined $infodir; + copy_subst($opt, $infodir.$name) if defined $infodir; } } |