version 1.76, 2017/08/02 13:29:04 |
version 1.77, 2017/08/22 17:50:11 |
Line 188 mansearch(const struct mansearch *search, |
|
Line 188 mansearch(const struct mansearch *search, |
|
mpage = *res + cur; |
mpage = *res + cur; |
mandoc_asprintf(&mpage->file, "%s/%s", |
mandoc_asprintf(&mpage->file, "%s/%s", |
paths->paths[i], page->file + 1); |
paths->paths[i], page->file + 1); |
|
if (access(chdir_status ? page->file + 1 : |
|
mpage->file, R_OK) == -1) { |
|
warn("%s", mpage->file); |
|
warnx("outdated mandoc.db contains " |
|
"bogus %s entry, run makewhatis %s", |
|
page->file + 1, paths->paths[i]); |
|
free(mpage->file); |
|
free(rp); |
|
continue; |
|
} |
mpage->names = buildnames(page); |
mpage->names = buildnames(page); |
mpage->output = buildoutput(outkey, page); |
mpage->output = buildoutput(outkey, page); |
mpage->ipath = i; |
mpage->ipath = i; |