Call daemon with 0 as first argument so that it changes the cwd to /
authorflorian <florian@openbsd.org>
Sun, 19 Aug 2018 12:29:03 +0000 (12:29 +0000)
committerflorian <florian@openbsd.org>
Sun, 19 Aug 2018 12:29:03 +0000 (12:29 +0000)
commit0e9ab5fb5e47840bce8f79ee1531370cd16de0dc
tree2e394228855716e9ec1fe9401f9e70c63509cbd9
parent262ed98cd81383fb3e01dc7bbb5572ded5c1f42d
Call daemon with 0 as first argument so that it changes the cwd to /
otherwise the main process will keep sitting in the directory from
where slaacd was started which might for example prevent an unmount.
Problem first observed by dlg in ntpd(8).
Discussed with deraadt@
sbin/slaacd/slaacd.c