mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
service: fixup after ifdef dropping
Commit 88516c0
removed one line too much.
This commit is contained in:
parent
0250d95659
commit
a83ad683fd
@ -977,9 +977,9 @@ static int service_load_sysv_name(Service *s, const char *name) {
|
|||||||
|
|
||||||
/* For SysV services we strip the rc.* and *.sh
|
/* For SysV services we strip the rc.* and *.sh
|
||||||
* prefixes/suffixes. */
|
* prefixes/suffixes. */
|
||||||
if (endswith(name, ".sh.service"))
|
if (startswith(name, "rc.") ||
|
||||||
|
endswith(name, ".sh.service"))
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
if (startswith(name, "rc."))
|
|
||||||
|
|
||||||
STRV_FOREACH(p, UNIT(s)->manager->lookup_paths.sysvinit_path) {
|
STRV_FOREACH(p, UNIT(s)->manager->lookup_paths.sysvinit_path) {
|
||||||
char *path;
|
char *path;
|
||||||
|
Loading…
Reference in New Issue
Block a user