diff options
author | 2014-06-20 01:21:48 +0000 | |
---|---|---|
committer | 2014-06-20 01:21:48 +0000 | |
commit | 68d738fe42e54462f22ee3dd221bf951ace1de86 (patch) | |
tree | b40b22e579e620ed42baac2332bf494af3203d97 /test-strnlen.c | |
parent | 5ba3d3bba94db2977dc1ded16ed2539823a25967 (diff) | |
download | mandoc-68d738fe42e54462f22ee3dd221bf951ace1de86.tar.gz mandoc-68d738fe42e54462f22ee3dd221bf951ace1de86.tar.zst mandoc-68d738fe42e54462f22ee3dd221bf951ace1de86.zip |
More tweaking of set_basedir().
1) Do not error out when getcwd(3) fails, only fail when inaccessibility
of the cwd prevents processing of relative paths given on the command line.
2) Do not uselessly call set_basedir() twice in a row.
While fts_read(3) in treescan() does cause the cwd to jump around,
fts_close(3) is always called at the end, putting us back
where we came from. The -d/-u fallback code already relied on this.
3) Fix the man-root-dir indicator in say().
Diffstat (limited to 'test-strnlen.c')
0 files changed, 0 insertions, 0 deletions