aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-06-19 00:45:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-06-19 00:45:37 +0000
commit5ba3d3bba94db2977dc1ded16ed2539823a25967 (patch)
tree4045b4c9061de2da263cc9c9e36a278e5002fbcc /eqn.c
parent4808ca5f163154292de44c6e56a5c97a948e2dbc (diff)
downloadmandoc-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 'eqn.c')
0 files changed, 0 insertions, 0 deletions