From: Ross Burton Date: Tue, 17 Sep 2019 20:30:30 +0000 (+0100) Subject: systemd-systemctl-native: don't care about line endings X-Git-Tag: uninative-2.7~103 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=7aaa9200b5ba2cba92ee1ed7003d54848498b37d;p=openembedded-core.git systemd-systemctl-native: don't care about line endings It's possible for a service file to accidentally contain mixed line endings, but the string cleanup code was assuming Unix endings. [ YOCTO #13535 ] Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl b/meta/recipes-core/systemd/systemd-systemctl/systemctl index 8837f54e16..ebac863739 100755 --- a/meta/recipes-core/systemd/systemd-systemctl/systemctl +++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl @@ -57,7 +57,7 @@ class SystemdFile(): if skip_re.match(line): continue - line = line.rstrip("\n") + line = line.strip() m = section_re.match(line) if m: if m.group('section') not in self.sections: