summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-17 18:59:05 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-17 18:59:05 +0200
commit4694836523eb42eea731dc56413742135b6c10ba (patch)
treef23bef2489d8e38054d66dc2adb4d7a559098342 /src
parent85ad5b18ad226891fe2860ec7d10277ec35022e0 (diff)
service: prefix descriptions when they come from legacy sources
Diffstat (limited to 'src')
-rw-r--r--src/service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c
index 202557ac0b..bc856084b5 100644
--- 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 = strdup(strstrip(t+12)))) {
+ if (!(d = strappend("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 = strdup(strstrip(t+12)))) {
+ if (!(d = strappend("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 = strdup(strstrip(t+18)))) {
+ if (!(d = strappend("LSB: ", strstrip(t+18)))) {
r = -ENOMEM;
goto finish;
}