summaryrefslogtreecommitdiffstats
path: root/mdoc_hash.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-06-20 01:21:48 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-06-20 01:21:48 +0000
commit89950ec6e6520116b180c9c8641702284e63be2d (patch)
treee11a0ad8031893e4152406646588b79592bd052e /mdoc_hash.c
parente3955eaa210176dd13ecce369f9eeda376c3d45e (diff)
downloadmandoc-89950ec6e6520116b180c9c8641702284e63be2d.tar.gz
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 'mdoc_hash.c')
0 files changed, 0 insertions, 0 deletions