summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-11-12 23:11:42 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-11-12 23:11:42 +0000
commitfb2679a1bd3a7946d8cc733d8412c710cf416237 (patch)
tree611ad5c1dd6222d001b8d3ea261164212ca5cff8 /usr.sbin
parenta40b4104f944dfb349288679fe30e63bbbf741b9 (diff)
parse libspec better, With this, vreaddir can find libraries.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/pkg_add6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index e11f1cbd392..77b78582546 100644
--- a/usr.sbin/pkg_add/pkg_add
+++ b/usr.sbin/pkg_add/pkg_add
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_add,v 1.108 2004/11/12 19:42:01 espie Exp $
+# $OpenBSD: pkg_add,v 1.109 2004/11/12 23:11:41 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -279,8 +279,8 @@ sub check_lib_specs
my $dir;
for my $spec (split(/,/, $specs)) {
print "checking libspec $spec " if $verbose;
- if ($spec =~ m|.*/|) {
- $dir = "$base/$&";
+ if ($spec =~ m|(.*)/|) {
+ $dir = "$base/$1";
$spec = $';
} else {
$dir = "$base/lib";