aboutsummaryrefslogtreecommitdiffstats
path: root/strlcpy.c
diff options
context:
space:
mode:
authorflorian2018-08-19 12:31:41 +0000
committerWynn Wolf Arbor2020-05-24 12:33:55 +0200
commitbf949ae69e139767ee5bb4b518d99fdb93037dd2 (patch)
tree9a4d66c2f6a1326dccd60eab8b6640b68d297e0c /strlcpy.c
parent157a1e913ca57b41dbb048c07181a99aa7eb2c7c (diff)
downloadslowcgi-bf949ae69e139767ee5bb4b518d99fdb93037dd2.tar.gz
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 'strlcpy.c')
0 files changed, 0 insertions, 0 deletions