Harden gendepends.sh some more so we only capture the stdout we want from
the depend function, #186072.
This commit is contained in:
parent
9211d8b3db
commit
b67f71ca5d
15
ChangeLog
15
ChangeLog
@ -1,13 +1,18 @@
|
|||||||
# ChangeLog for Gentoo System Intialization ("rc") scripts
|
# ChangeLog for Gentoo System Intialization ("rc") scripts
|
||||||
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
|
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
|
||||||
|
|
||||||
|
22 Jul 2007; Roy Marples <uberlord@gentoo.org>:
|
||||||
|
|
||||||
|
Harden gendepends.sh some more so we only capture the stdout we want from
|
||||||
|
the depend function, #186072.
|
||||||
|
|
||||||
21 Jul 2007; Roy Marples <uberlord@gentoo.org>:
|
21 Jul 2007; Roy Marples <uberlord@gentoo.org>:
|
||||||
|
|
||||||
RC_DEPEND_STRICT now controls dependency strictness.
|
RC_DEPEND_STRICT now controls dependency strictness.
|
||||||
If yes then we only use services in the boot and default runlevels,
|
If yes then we only use services in the boot and default runlevels,
|
||||||
regradless of service state.
|
regradless of service state.
|
||||||
If no then we take into account coldplugged services and the state
|
If no then we take into account coldplugged services and the state
|
||||||
of currently running services.
|
of currently running services.
|
||||||
Fixes #185640.
|
Fixes #185640.
|
||||||
|
|
||||||
15 Jul 2007; Roy Marples <uberlord@gentoo.org>:
|
15 Jul 2007; Roy Marples <uberlord@gentoo.org>:
|
||||||
|
@ -33,6 +33,9 @@ for SVCNAME in * ; do
|
|||||||
|
|
||||||
SVCNAME=${SVCNAME##*/}
|
SVCNAME=${SVCNAME##*/}
|
||||||
(
|
(
|
||||||
|
# Save stdout in fd3, then remap it to stderr
|
||||||
|
exec 3>&1 1>&2
|
||||||
|
|
||||||
rc_c=${SVCNAME%%.*}
|
rc_c=${SVCNAME%%.*}
|
||||||
if [ -n "${rc_c}" -a "${rc_c}" != "${SVCNAME}" ] ; then
|
if [ -n "${rc_c}" -a "${rc_c}" != "${SVCNAME}" ] ; then
|
||||||
[ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}" >&2
|
[ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}" >&2
|
||||||
@ -42,6 +45,8 @@ for SVCNAME in * ; do
|
|||||||
[ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}" >&2
|
[ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}" >&2
|
||||||
|
|
||||||
if . /etc/init.d/"${SVCNAME}" ; then
|
if . /etc/init.d/"${SVCNAME}" ; then
|
||||||
|
# Restore stdout now
|
||||||
|
exec 1>&3
|
||||||
|
|
||||||
echo "${SVCNAME}"
|
echo "${SVCNAME}"
|
||||||
depend
|
depend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user