HomeFreeBSD

rc: fix parse of $local_startup

Description

rc: fix parse of $local_startup

77e1ccbee3ed6c837929e4e232fd07f95bfc8294 introduced parallel execution
of rc. It separated groups with line feeds (\n) and elements within
groups using spaces. This is a natural separation due to rcorder
using spaces and lines to separate elements within groups with groups
of services separated by line feeds.

77e1ccbee3ed6c837929e4e232fd07f95bfc8294 parses the output from rcorder
by setting $IFS. However it failed to reset $IFS to default ' \t\n'
prior to calling find_local_scripts_new(), causing find_local_scripts_new()
to fail parsing $local_startup for site-specific local rc scripts, i.e.
${LOCALBASE}/etc/rc.d. This caused daemons from ports and packages such
as postfix, dovecot, nut, and others in ${LOCALBASE} not to be started.

PR: 249192
MFC after: 3 week
X-MFC with: 77e1ccbee3ed6c837929e4e232fd07f95bfc8294

Details

Provenance
cyAuthored on Feb 24 2021, 5:12 AM
Parents
rGec786886661a: Update manpage for AMD 10GbE driver
Branches
Unknown
Tags
Unknown
Reverted By
rGf61831d2e8bd: Revert "rc: implement parallel boot"