Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 125873 Details for
Bug 186459
runscript.sh: allow non-root to execute `foo --quiet status` in addition to `foo status`
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), 588 bytes, created by
Jan Kundrát (RETIRED)
on 2007-07-24 13:01:17 UTC
(
hide
)
Description:
allow-quiet-for-initscript-status.patch
Filename:
MIME Type:
Creator:
Jan Kundrát (RETIRED)
Created:
2007-07-24 13:01:17 UTC
Size:
588 bytes
patch
obsolete
>--- runscript.sh 2007-06-26 02:41:21.000000000 +0200 >+++ /sbin/runscript.sh 2007-07-24 14:58:15.867441265 +0200 >@@ -8,7 +8,10 @@ > [[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /sbin/functions.sh > > # User must be root to run most script stuff (except status) >-if [[ ${EUID} != "0" ]] && ! [[ $2 == "status" && $# -eq 2 ]] ; 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 186459
:
125873
|
245860