]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add coverage for #26483 26527/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 21 Feb 2023 18:30:58 +0000 (19:30 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 21 Feb 2023 18:39:52 +0000 (19:39 +0100)
test/units/testsuite-26.sh

index 17b979238ebf8f7ef7c5408c37956d658c343d6d..f808e0ab43d91c2cf178aed3e2ad1cc5b41107fe 100755 (executable)
@@ -61,6 +61,9 @@ printf '%b'   '[Service]\n' 'ExecStart=\n' 'ExecStart=sleep 10d' >"+4"
 EDITOR='mv' script -ec 'systemctl edit "$UNIT_NAME"' /dev/null
 printf '%s\n' '[Service]'   'ExecStart='   'ExecStart=sleep 10d' | cmp - "/etc/systemd/system/$UNIT_NAME.d/override.conf"
 
+# Double free when editing a template unit (#26483)
+EDITOR='true' script -ec 'systemctl edit user@0' /dev/null
+
 # Argument help
 systemctl --state help
 systemctl --signal help