Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 212007 Details for
Bug 295657
sys-apps/baselayout-1.12.13: init scripts: check for root and /etc/init.d/foo status broken
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allow-quiet-for-initscript-status.patch
allow-quiet-for-initscript-status.patch (text/plain), 597 bytes, created by
Jan Kundrát (RETIRED)
on 2009-12-04 13:16:54 UTC
(
hide
)
Description:
allow-quiet-for-initscript-status.patch
Filename:
MIME Type:
Creator:
Jan Kundrát (RETIRED)
Created:
2009-12-04 13:16:54 UTC
Size:
597 bytes
patch
obsolete
>--- /sbin/runscript.sh.orig 2009-12-04 14:11:05.762121461 +0100 >+++ /sbin/runscript.sh 2009-12-04 14:16:47.592496931 +0100 >@@ -8,7 +8,10 @@ > [[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /etc/init.d/functions.sh > > # User must be root to run most script stuff (except status) >-if [[ ${EUID} != "0" ]] && [[ " $* " != " status " ]] ; then >+if [[ ${EUID} != "0" ]] && ! [[ $2 == "status" && $# -eq 2 ]] && \ >+ ! [[ $2 == "--quiet" && $3 == "status" && $# -eq 3 ]] && \ >+ ! [[ $3 == "--quiet" && $2 == "status" && $# -eq 3 ]] \ >+ ; then > eerror "$0: must be root to run init scripts" > exit 1 > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 295657
:
212007