summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/It/complex-multiline.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-06-05 17:48:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-06-05 17:48:14 +0000
commite1bfc53dbc2352e5f1c40ee55b788ad8614f8882 (patch)
tree91018d8f706ac9fa8c92245a413ffac41ebb3b34 /regress/mdoc/It/complex-multiline.in
parentb89434f21ae046433285c9cbccd06a7e60481404 (diff)
downloadmandoc-e1bfc53dbc2352e5f1c40ee55b788ad8614f8882.tar.gz
Add back the realpath() checks that got lost during the change from
db to sqlite; they are needed to prevent corruption of the database when paths containing dot, dotdot, or symlinks are given on the command line. Also make sure the exit-code is really non-zero on system errors and use mandoc(1) exit codes. To make all this simpler, * Drop the "basedir" argument from almost every function and make it global because it is really state info used all over the place. * Move "startdir" and "fd" as local vars into set_basedir() because they are only used for this one purpose, i.e. to move out of basedir again. While here, * Clarify the name of path_arg in the main program; in the -C case, it is not a dir, and anyway there are lots of different dirs around. * Include missing <stdio.h> needed for perror().
Diffstat (limited to 'regress/mdoc/It/complex-multiline.in')
0 files changed, 0 insertions, 0 deletions