]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cclass: fix .so loading file
authorChristian Brunner <chb@muc.de>
Mon, 2 Aug 2010 19:58:30 +0000 (21:58 +0200)
committerSage Weil <sage@newdream.net>
Mon, 2 Aug 2010 20:23:55 +0000 (13:23 -0700)
The only thing I've found, is that the *.so files are included in the -devel
rpm. This leads to the fact that the 'find' in cclass doesn't return any
files. I'd suggest the attached change in the script.

Christian

Signed-off-by: Sage Weil <sage@newdream.net>
src/cclass.in

index 69513fa8589064ef4b57e57ca7fe721e899613ee..1a2a807371b9a28ec0430c80b26c8550cf53d934 100755 (executable)
@@ -85,7 +85,7 @@ load() {
 }
 
 load_all() {
-       all=`find $libdir -name 'libcls_*.so'`;
+       all=`find $libdir -name 'libcls_*.so*' -type f`;
        if [ -n "$all" ]; then
                for fn in $all; do
                        echo Loading class: $fn: `$BINDIR/cclsinfo $fn`