From 2592380bcf3e586da449179ca2c4a6d43c566ce7 Mon Sep 17 00:00:00 2001 From: tappro Date: Tue, 13 Sep 2005 00:15:32 +0000 Subject: [PATCH] b=9300 wrong LASSERT in previous commit. --- lustre/mds/mds_audit_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 1.8.3.1