Commit a049efa4 authored by Michael Stapelberg's avatar Michael Stapelberg

ignore chkconfig headers entirely, they are often broken in Debian

closes #634472
parent c969fb1d
......@@ -14,6 +14,8 @@ systemd (204-8) UNRELEASED; urgency=low
systemd-detect-virt, so that it works for unprivileged users.
(Closes: #739699)
* pam: Check $XDG_RUNTIME_DIR owner (Closes: #731300)
* Ignore chkconfig headers entirely, they are often broken in Debian
(Closes: #634472)
[ Michael Biebl ]
* do a one-time migration of RAMTMP= from /etc/default/rcS and
......
......@@ -628,6 +628,9 @@ static int service_load_sysv_path(Service *s, const char *path) {
/* Try to parse Red Hat style chkconfig headers */
/* chkconfig headers are often broken in Debian, see
* http://bugs.debian.org/634472, so we ignore them entirely. */
#if 0
if (startswith_no_case(t, "chkconfig:")) {
int start_priority;
char runlevels[16], *k;
......@@ -669,7 +672,10 @@ static int service_load_sysv_path(Service *s, const char *path) {
s->sysv_runlevels = d;
}
} else if (startswith_no_case(t, "description:")) {
} else
#endif
if (startswith_no_case(t, "description:")) {
size_t k = strlen(t);
char *d;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment