summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2019-01-20 04:52:07 +0000
committerajacoutot <ajacoutot@openbsd.org>2019-01-20 04:52:07 +0000
commitbb8a7d76a32a1bc2ce5fb0df959feb6c33f44a11 (patch)
tree1ae77c4a1ba40aad2aced66b4322dd24f15756d3 /lib/libc
parentAF_ROUTE is preferred over PF_ROUTE in socket() and (diff)
downloadwireguard-openbsd-bb8a7d76a32a1bc2ce5fb0df959feb6c33f44a11.tar.xz
wireguard-openbsd-bb8a7d76a32a1bc2ce5fb0df959feb6c33f44a11.zip
The shell will strip the quotes from daemon_flags when starting a daemon so make
sure pexp matches the process (i.e. doesn't include the quotes). It's a bit hackish but it allows things like these in rc.conf.local: relayd_flags=-D IPS="1.2.3.4 2.3.4.5" And we properly end up with... $ grep ^pexp /var/run/rc.d/relayd pexp=/usr/sbin/relayd -D IPS=1.2.3.4 1.2.3.5 ... which matches what is in the process list: root 14217 <snip> 0:00.01 /usr/sbin/relayd -D IPS=1.2.3.4 1.2.3.5 There's always the possibility that we have introduced a regressions with hand crafted functions in rc.d scripts (mostly from packags), so watch out. reported by and debugged with claudio@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions