Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 270657 Details for
Bug 364159
sys-apps/openrc: runscript should disallow starting services when not running OpenRC
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Conceptual patch
0001-Add-a-check-for-softlevel-when-running-init.d-script.patch (text/plain), 949 bytes, created by
Michał Górny
on 2011-04-20 14:30:46 UTC
(
hide
)
Description:
Conceptual patch
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2011-04-20 14:30:46 UTC
Size:
949 bytes
patch
obsolete
>From ac70101ad50348fee636cea36cefcd473ee45690 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> >Date: Wed, 20 Apr 2011 15:34:08 +0200 >Subject: [PATCH] Add a check for softlevel when running init.d scripts. > >${RC_SVCDIR}/softlevel should be a good file to check for before running >a OpenRC script. This should fix http://bugs.gentoo.org/show_bug.cgi?id=364159. >--- > src/rc/runscript.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > >diff --git a/src/rc/runscript.c b/src/rc/runscript.c >index 0eca487..b7cc810 100644 >--- a/src/rc/runscript.c >+++ b/src/rc/runscript.c >@@ -1112,6 +1112,11 @@ runscript(int argc, char **argv) > exit(EXIT_FAILURE); > } > >+ if (!exists(RC_SVCDIR "/softlevel")) { >+ fprintf(stderr, "OpenRC is not running\n"); >+ exit(EXIT_FAILURE); >+ } >+ > if (stat(argv[1], &stbuf) != 0) { > fprintf(stderr, "runscript `%s': %s\n", > argv[1], strerror(errno)); >-- >1.7.5.rc1 >
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 364159
:
270657
|
270823
|
272575