From 006c21d420272d77b411a6b44f93b5ad82d1c38c Mon Sep 17 00:00:00 2001 From: erh Date: Wed, 27 Jan 1999 05:50:29 +0000 Subject: [PATCH] Replace find with ls when looking for installed libraries to prevent subdirectories from being searched. (suggested by Hubert Feyrer) --- lib/checkver | 6 ++++-- lib/checkvers | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/checkver b/lib/checkver index f6838f983619..59e24d80ac49 100755 --- a/lib/checkver +++ b/lib/checkver @@ -1,5 +1,5 @@ #!/bin/ksh -# $NetBSD: checkver,v 1.3 1999/01/27 00:02:55 hubertf Exp $ +# $NetBSD: checkver,v 1.4 1999/01/27 05:50:29 erh Exp $ # # Copyright (c) 1998 The NetBSD Foundation, Inc. # All rights reserved. @@ -136,7 +136,9 @@ if [ $usedir -eq 1 ] ; then if [ "X$1" != "X" ] ; then libdir="$1" fi - find $libdir -name 'lib*.so.*.*' > $LIBLIST + for f in $libdir ; do + ls $f/lib*.so.*.* + done > $LIBLIST fi # Build list from set lists. Parameter may be either diff --git a/lib/checkvers b/lib/checkvers index f41847981f2d..ae747f5de64b 100755 --- a/lib/checkvers +++ b/lib/checkvers @@ -1,4 +1,5 @@ #!/bin/ksh +# $NetBSD: checkvers,v 1.3 1999/01/27 05:50:29 erh Exp $ # # Copyright (c) 1998 The NetBSD Foundation, Inc. # All rights reserved. @@ -147,7 +148,9 @@ if [ $usedir -eq 1 ] ; then if [ "X$1" != "X" ] ; then libdir="$1" fi - find $libdir -name 'lib*.so.*.*' > $LIBLIST + for f in $libdir ; do + ls $f/lib*.so.*.* + done > $LIBLIST fi # Build list from set lists. Parameter may be either