load-fragment: reset the list on an ExecStart= containing only whitespace
authorFilipe Brandenburger <filbranden@google.com>
Sat, 6 Jun 2015 06:12:25 +0000 (23:12 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Wed, 17 Jun 2015 18:12:12 +0000 (11:12 -0700)
commitc83f1f30b80253de8a1a6034e7b016fa55d24523
tree54674c852ff4032585c0d710be3ee8aeb5ff3804
parent46a0d98ac0fb5b507a6423e60058a2483830b432
load-fragment: reset the list on an ExecStart= containing only whitespace

This is consistent with how an empty string works in an ExecStart=
statement.  We should not differentiate between an empty string and
whitespace only (since they look the same.)

Update the test case with whitespace only to reflect that the list is
reset.

Tested that `test-unit-file` passes and other test cases are not
affected.  Installed the patched systemd binaries on a machine, booted
it, looked for out of the usual behavior but did not find any.
src/core/load-fragment.c
src/test/test-unit-file.c