summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_merge
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/pkg_merge')
-rw-r--r--usr.sbin/pkg_add/pkg_merge3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_merge b/usr.sbin/pkg_add/pkg_merge
index 05dde5863bf..c8bd09d61b9 100644
--- a/usr.sbin/pkg_add/pkg_merge
+++ b/usr.sbin/pkg_add/pkg_merge
@@ -22,6 +22,7 @@ use OpenBSD::Getopt;
use OpenBSD::Error;
use OpenBSD::Ustar;
use OpenBSD::ArcCheck;
+use OpenBSD::Paths;
use File::Copy;
use File::Path;
@@ -145,7 +146,7 @@ my @tomerge;
my $prefix = 'a';
my $allprefix = '';
-open( my $outfh, "|gzip -c >$opt_o");
+open( my $outfh, "|-", OpenBSD::Paths->gzip, "-o", $opt_o);
my $wrarc = OpenBSD::Ustar->new($outfh, ".");
for my $pkgname (@ARGV) {