diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-01 18:06:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-11 12:53:12 +0200 |
commit | 6f40aa4547ac2c62ade78268108a4fa60b6e9fff (patch) | |
tree | 28a14ca2cd1fa1adc996782624579ec27bee327c /src/core/path.c | |
parent | systemctl: load_error is a string, don't compare it with 0 (diff) | |
download | systemd-6f40aa4547ac2c62ade78268108a4fa60b6e9fff.tar.xz systemd-6f40aa4547ac2c62ade78268108a4fa60b6e9fff.zip |
core: add a couple of more error cases that should result in "bad-setting"
This changes a number of EINVAL cases to ENOEXEC, so that we enter
"bad-setting" state if they fail.
Diffstat (limited to 'src/core/path.c')
-rw-r--r-- | src/core/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/path.c b/src/core/path.c index 6eacd95a16..e97da44700 100644 --- a/src/core/path.c +++ b/src/core/path.c @@ -289,7 +289,7 @@ static int path_verify(Path *p) { if (!p->specs) { log_unit_error(UNIT(p), "Path unit lacks path setting. Refusing."); - return -EINVAL; + return -ENOEXEC; } return 0; |