Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 245860 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-non-root-rc-status.patch
allow-non-root-rc-status.patch (text/plain), 458 bytes, created by
Jan Kundrát (RETIRED)
on 2010-09-03 13:11:13 UTC
(
hide
)
Description:
allow-non-root-rc-status.patch
Filename:
MIME Type:
Creator:
Jan Kundrát (RETIRED)
Created:
2010-09-03 13:11:13 UTC
Size:
458 bytes
patch
obsolete
>--- /sbin/runscript.sh.orig 2010-08-26 04:47:36.617879000 +0200 >+++ /sbin/runscript.sh 2010-09-03 15:06:30.109790869 +0200 >@@ -8,7 +8,7 @@ > [[ ${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" ]] && ! [[ "$*" =~ " status" ]] ; 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