Whamcloud - gitweb
b=20101 lfs ost enhancements
[fs/lustre-release.git] / lustre / utils / liblustreapi.c
index d61cfa2..a425b1a 100644 (file)
@@ -592,7 +592,7 @@ int llapi_search_mounts(const char *pathname, int index, char *mntdir,
 {
         int want = WANT_PATH, idx = -1;
 
-        if (!pathname) {
+        if (!pathname || pathname[0] == '\0') {
                 want |= WANT_INDEX;
                 idx = index;
         } else