diff options
author | 2014-06-19 00:45:37 +0000 | |
---|---|---|
committer | 2014-06-19 00:45:37 +0000 | |
commit | 5ba3d3bba94db2977dc1ded16ed2539823a25967 (patch) | |
tree | 4045b4c9061de2da263cc9c9e36a278e5002fbcc /compat_ohash.c | |
parent | 4808ca5f163154292de44c6e56a5c97a948e2dbc (diff) | |
download | mandoc-5ba3d3bba94db2977dc1ded16ed2539823a25967.tar.gz mandoc-5ba3d3bba94db2977dc1ded16ed2539823a25967.tar.zst mandoc-5ba3d3bba94db2977dc1ded16ed2539823a25967.zip |
Some simple set_basedir() cleanup; more to come.
1) Refrain from calling set_basedir() in the -t case,
and do not attempt to strip anything from the file names in that case.
Testing individual files cannot reasonably have any notion of a base dir.
2) Remove the possibility of passing NULL to set_basedir().
It was dangerous because it was not idempotent, and it served no purpose
except closing a file descriptor right before exit(), which is pointless.
Besides, the file descriptor is likely to be removed completely, soon.
3) Make sure that /foobar isn't treated as a subdirectory of /foo;
this fixes a bug reported by espie@.
Diffstat (limited to 'compat_ohash.c')
0 files changed, 0 insertions, 0 deletions