diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh
index 5c3689935bbb108edf091e757ee33374252abaa0..551b9d7b1cece7b4a24a557dcd537ab0c3607861 100644
--- a/lustre/tests/sanity.sh
+++ b/lustre/tests/sanity.sh
@@ -1521,7 +1521,7 @@ test_52b() {
 run_test 52b "immutable flag test (should return errors) ======="
 
 test_53() {
-        for i in `ls /proc/fs/lustre/osc/OSC*mds1 2> /dev/null` ; do
+        for i in `ls -d /proc/fs/lustre/osc/OSC*mds1 2> /dev/null` ; do
                 ostname=`echo $i | cut -d _ -f 3-4 | sed -e s/_mds1//`
                 ost_last=`cat /proc/fs/lustre/obdfilter/$ostname/last_id`
                 mds_last=`cat $i/prealloc_last_id`