diff options
author | 2018-08-19 12:31:41 +0000 | |
---|---|---|
committer | 2018-08-19 12:31:41 +0000 | |
commit | 83926339880de9648b94ba4943d1dbf509b83d99 (patch) | |
tree | d9f7d0cedf93ff31b8805f09c03c26eb77713d4c /usr.bin/mandoc/roff.c | |
parent | Call daemon with 0 as first argument so that it changes the cwd to / (diff) | |
download | wireguard-openbsd-83926339880de9648b94ba4943d1dbf509b83d99.tar.xz wireguard-openbsd-83926339880de9648b94ba4943d1dbf509b83d99.zip |
Call daemon with 0 as first argument so that it changes the cwd to /.
It is not a problem in slowcgi since it calls chroot(2) and then
chdir(2) shortly afterwards but hopefully prevents copying code into
daemons where it does matter.
Problem first observed by dlg in ntpd(8) which keeps sitting in the
directory from where it was started which might for example prevent an
unmount.
Discussed with deraadt@
Diffstat (limited to 'usr.bin/mandoc/roff.c')
0 files changed, 0 insertions, 0 deletions