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:
85ad5b1
)
service: prefix descriptions when they come from legacy sources
author
Lennart Poettering
<lennart@poettering.net>
Tue, 17 Aug 2010 16:59:05 +0000
(18:59 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 17 Aug 2010 16:59:05 +0000
(18:59 +0200)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index 202557ac0ba6035097fc241598540f2c5f62de78..bc856084b5b5120e2586ea8516c72bd1040080d8 100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-488,7
+488,7
@@
static int service_load_sysv_path(Service *s, const char *path) {
t[k-1] = 0;
}
- if (!(d = str
dup(
strstrip(t+12)))) {
+ if (!(d = str
append("LSB: ",
strstrip(t+12)))) {
r = -ENOMEM;
goto finish;
}
@@
-635,7
+635,7
@@
static int service_load_sysv_path(Service *s, const char *path) {
state = LSB_DESCRIPTION;
- if (!(d = str
dup(
strstrip(t+12)))) {
+ if (!(d = str
append("LSB: ",
strstrip(t+12)))) {
r = -ENOMEM;
goto finish;
}
@@
-648,7
+648,7
@@
static int service_load_sysv_path(Service *s, const char *path) {
state = LSB;
- if (!(d = str
dup(
strstrip(t+18)))) {
+ if (!(d = str
append("LSB: ",
strstrip(t+18)))) {
r = -ENOMEM;
goto finish;
}