]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/load-fragment: don't treat "; ;" as "/usr/bin/;"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 16 Sep 2020 07:42:47 +0000 (09:42 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 18 Sep 2020 13:28:48 +0000 (15:28 +0200)
commit598c47c86e248c1e5905d35a3f907a9da38086b6
treeca4eff907970955037d21252480ac34a56f96d96
parentfe65d692432aaa0083d1764c4e46e25f9bd5fbde
core/load-fragment: don't treat "; ;" as "/usr/bin/;"

We had a special test case that the second semicolon would be interpreted
as an executable name. We would then try to find the executable and rely
on ";" not being found to cause ENOEXEC to be returned. I think that's just
crazy. Let's treat the second semicolon as a separator and ignore the
whole thing as we would whitespace.
src/core/load-fragment.c
src/test/test-load-fragment.c