projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0250d95
)
service: fixup after ifdef dropping
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 5 Jan 2013 02:18:17 +0000
(21:18 -0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 5 Jan 2013 02:57:55 +0000
(21:57 -0500)
Commit 88516c0 removed one line too much.
src/core/service.c
patch
|
blob
|
history
diff --git
a/src/core/service.c
b/src/core/service.c
index
a4e419b
..
70b93e8
100644
(file)
--- a/
src/core/service.c
+++ b/
src/core/service.c
@@
-977,9
+977,9
@@
static int service_load_sysv_name(Service *s, const char *name) {
/* For SysV services we strip the rc.* and *.sh
* prefixes/suffixes. */
- if (endswith(name, ".sh.service"))
+ if (startswith(name, "rc.") ||
+ endswith(name, ".sh.service"))
return -ENOENT;
- if (startswith(name, "rc."))
STRV_FOREACH(p, UNIT(s)->manager->lookup_paths.sysvinit_path) {
char *path;