From: tappro Date: Tue, 13 Sep 2005 00:15:32 +0000 (+0000) Subject: b=9300 X-Git-Tag: v1_7_100~725 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=2592380bcf3e586da449179ca2c4a6d43c566ce7;p=fs%2Flustre-release.git b=9300 wrong LASSERT in previous commit. --- diff --git a/lustre/mds/mds_audit_path.c b/lustre/mds/mds_audit_path.c index 0e9befc..6b64c86 100644 --- a/lustre/mds/mds_audit_path.c +++ b/lustre/mds/mds_audit_path.c @@ -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); }