Whamcloud - gitweb
b=9300
authortappro <tappro>
Tue, 13 Sep 2005 00:15:32 +0000 (00:15 +0000)
committertappro <tappro>
Tue, 13 Sep 2005 00:15:32 +0000 (00:15 +0000)
wrong LASSERT in previous commit.

lustre/mds/mds_audit_path.c

index 0e9befc..6b64c86 100644 (file)
@@ -581,13 +581,14 @@ next:
 out:
         list_for_each_safe (pos, n, &list) {
                 item = list_entry(pos, struct name_item, link);
+                
                 if (!rc) {
                         strcat(*name, "/");
                         strcat(*name, item->name);
                 }
                 list_del_init(&item->link);
                 OBD_FREE(item, sizeof(*item));
-                LASSERT(strlen(*name) < *namelen);
+                LASSERT(strlen(*name) <= *namelen);
         }
         RETURN(rc);
 }