summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Mestdagh <steven@cvs.openbsd.org>2007-10-06 12:13:42 +0000
committerSteven Mestdagh <steven@cvs.openbsd.org>2007-10-06 12:13:42 +0000
commit2ac8c227a439949ec4e0220b27ae56c58ab0045e (patch)
tree9d41dd029e50ad7c77b23d203c8744b273fb7d24
parent7b8a1d694702ed1688a89763ec3eb3f4b1ead7d7 (diff)
finish loop as soon as the ldconfig search directories have been found.
ok espie@
-rw-r--r--usr.sbin/pkg_add/OpenBSD/SharedLibs.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm b/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm
index fb4fa3b322c..72854ea06bb 100644
--- a/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm
+++ b/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: SharedLibs.pm,v 1.30 2007/09/28 14:42:12 espie Exp $
+# $OpenBSD: SharedLibs.pm,v 1.31 2007/10/06 12:13:41 steven Exp $
#
# Copyright (c) 2003-2005 Marc Espie <espie@openbsd.org>
#
@@ -55,6 +55,7 @@ sub init_path($)
for my $d (split(/\:/o, $1)) {
$path->{$d} = 1;
}
+ last;
}
}
close($fh);