From 9f5529b45a5aebb0861e793bd6f2ef7a12374a6b Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 11 Nov 2005 08:13:18 +0000 Subject: [PATCH] Skip .symbols files. --- usr.sbin/kldxref/kldxref.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c index 3beed7acf829..c095e9ccaa65 100644 --- a/usr.sbin/kldxref/kldxref.c +++ b/usr.sbin/kldxref/kldxref.c @@ -187,7 +187,7 @@ parse_entry(struct mod_metadata *md, const char *cval, printf(" module %s\n", cval); break; default: - warnx("unknown metdata record %d in file %s", md->md_type, kldname); + warnx("unknown metadata record %d in file %s", md->md_type, kldname); } if (!error) record_end(); @@ -344,6 +344,9 @@ main(int argc, char *argv[]) } if (p->fts_info != FTS_F) continue; + if (p->fts_namelen >= 8 && + strcmp(p->fts_name + p->fts_namelen - 8, ".symbols") == 0) + continue; read_kld(p->fts_path, p->fts_name); } fts_close(ftsp);