mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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 ] (From OE-Core rev: 7aaa9200b5ba2cba92ee1ed7003d54848498b37d) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f3977f03a1
commit
9ad35b8707
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user