chiark / gitweb /
man,html: say 'systemd 198' in the header
[elogind.git] / src / core / service.c
index 61b150cba8e55fff42109bce0bea6e520d4e6754..3fbb0a136d185de521ea3187c47c86ba4163ed7a 100644 (file)
@@ -331,7 +331,7 @@ static char *sysv_translate_name(const char *name) {
         if (endswith(name, ".sh"))
                 /* Drop .sh suffix */
                 strcpy(stpcpy(r, name) - 3, ".service");
-        if (startswith(name, "rc."))
+        else if (startswith(name, "rc."))
                 /* Drop rc. prefix */
                 strcpy(stpcpy(r, name + 3), ".service");
         else