stsp 89b375f628 Fix gitdaemon rc.d(8) script's mechanism for setting the daemon's UID.
UID switching was controlled via git-dameon's --user option in $daemon_flags.
This is problematic in case $gitdaemon_flags is unwittingly set to some value
which omits the --user option: git-daemon would then run as root.

The fix implemented here sets $daemon_user to _gitdaemon by default,
and leaves $daemon_flags empty by default. This ensures that git-daemon
runs as user _gitdaemon regardless of the value of $gitdaemon_flags.

Anyone using git-daemon should check their system. If gitdaemon is
currently running as root, set gitdaemon_user=_gitdaemon in rc.conf.local
and restart the service.

ok kn@
2019-07-16 09:56:55 +00:00
..
2019-06-26 15:07:57 +00:00
2018-06-14 17:43:47 +00:00
2017-02-25 20:35:31 +00:00
2018-09-04 12:46:09 +00:00