Skip to content
Unverified Commit 85c5d313 authored by williamvds's avatar williamvds
Browse files

systemctl: show original contents when editing unit



A comment indicates the start of the new contents of the override file,
and another indicates that lines following it will be discarded once
editing is finished.
The contents of the unit file and drop-ins are listed out after this
last marker.

Adds WRITE_STRING_FILE_TRUNCATE to set O_TRUNC when opening a file.

Thanks to cgzones for providing the required SELinux function calls.

Co-authored-by: default avatarChristian Göttsche <cgzones@googlemail.com>
parent 6797a74f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment