diff options
author | ru <ru@FreeBSD.org> | 2005-11-11 08:13:18 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-11-11 08:13:18 +0000 |
commit | c5eba8bfee2914083c4b7acc02153dea607fec14 (patch) | |
tree | f83ca6b16f5aa7e685ed1335e0cb4f7f990ae9d8 /usr.sbin | |
parent | f7bdaa902f082e56f695ad34026cc018c337a3c0 (diff) | |
download | FreeBSD-src-c5eba8bfee2914083c4b7acc02153dea607fec14.zip FreeBSD-src-c5eba8bfee2914083c4b7acc02153dea607fec14.tar.gz |
Skip .symbols files.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/kldxref/kldxref.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c index 3beed7a..c095e9cc 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); |