summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_mklocatedb
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-06-04 14:57:34 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-06-04 14:57:34 +0000
commitc84619ff9fce6a775a11ea33bc32175591c1584f (patch)
tree41530734f6a01324bddf5d68528a28ae3a1b80bc /usr.sbin/pkg_add/pkg_mklocatedb
parent3ecbd34a160f4de0ad5a1f2af518f23766613210 (diff)
I am on drugs, I don't know where I found split can take strings as
arguments. Repair...
Diffstat (limited to 'usr.sbin/pkg_add/pkg_mklocatedb')
-rw-r--r--usr.sbin/pkg_add/pkg_mklocatedb2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_mklocatedb b/usr.sbin/pkg_add/pkg_mklocatedb
index 3cfd94dccb5..7e562aa8a40 100644
--- a/usr.sbin/pkg_add/pkg_mklocatedb
+++ b/usr.sbin/pkg_add/pkg_mklocatedb
@@ -82,7 +82,7 @@ if ($opt_n or -t STDOUT) {
open $fh, "|-", $MKLOCATEDB, $MKLOCATEDB or die "couldn't open pipe: $!";
}
if ($opt_s || $opt_x) {
- my ($rev, $arch) = split(' ', `uname -mr`);
+ my ($rev, $arch) = split(/\s+/o, `uname -mr`);
chomp $arch;
$rev =~ s/\.//;
if ($opt_s) {