https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285600
Bug ID: 285600
Summary: rc.d/ftpd: ftpd_flags not working
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Created attachment 258934
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258934&action=edit
rc.d: Fix ftpd flags
After f99f0ee14e3a ("rc.d: add a service jails config to all base system
services"), the FTP service ignores the flags configured in ftpd_flags:
# sysrc ftpd_flags=-B
ftpd_flags: -> -B
# service ftpd enable
ftpd enabled in /etc/rc.conf
# service ftpd start
Starting ftpd.
# pgrep -fl ftpd
1234 /usr/libexec/ftpd -D
Notice the absence of the "-B" flag.
Attached is a proposed patch.
Also tested as a service jail:
# sysrc ftpd_flags=-B
ftpd_flags: -> -B
# sysrc ftpd_svcj=YES
ftpd_svcj: -> YES
# service ftpd enable
ftpd enabled in /etc/rc.conf
# service ftpd start
Starting ftpd.
# pgrep -fl ftpd
1234 /usr/libexec/ftpd -D -B
# pgrep -j1 -fl ftpd
1234 /usr/libexec/ftpd -D -B
--
You are receiving this mail because:
You are the assignee for the bug.