chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acbeb42
)
service: remove distribution specific comments, the code run unconditional now
author
Kay Sievers
<kay@vrfy.org>
Sat, 12 Jan 2013 22:31:46 +0000
(23:31 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Sat, 12 Jan 2013 22:31:46 +0000
(23:31 +0100)
src/core/service.c
patch
|
blob
|
history
diff --git
a/src/core/service.c
b/src/core/service.c
index 2a4e691e789fd0a9e3a44c9b1c0b755d72fdc111..70b251f0bb8402fcc541224bc1b34e6b3dd82d19 100644
(file)
--- a/
src/core/service.c
+++ b/
src/core/service.c
@@
-326,13
+326,13
@@
static char *sysv_translate_name(const char *name) {
return NULL;
if (endswith(name, ".sh"))
- /* Drop
Debian-style
.sh suffix */
+ /* Drop .sh suffix */
strcpy(stpcpy(r, name) - 3, ".service");
if (startswith(name, "rc."))
- /* Drop
Frugalware-style
rc. prefix */
+ /* Drop rc. prefix */
strcpy(stpcpy(r, name + 3), ".service");
else
- /* Normal init script
s
*/
+ /* Normal init script
name
*/
strcpy(stpcpy(r, name), ".service");
return r;