diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-05-11 23:52:29 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-05-12 00:26:14 +0200 |
commit | eacd8534257516e4fea049c7562f05349529c476 (patch) | |
tree | 8253f09de2dcb34af8821e23061a0a2ee78d8f5e /src | |
parent | 0a98c46d509ed03c3bdfc71e5d694dd40d2db4b0 (diff) |
systemctl: fix check for template units
A typo from 7410616c. We want to ignore EINVAL but only catch errors.
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index d48160e008..1f18f9cb0b 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -2339,7 +2339,7 @@ static int unit_find_paths( _cleanup_free_ char *template = NULL; r = unit_name_template(unit_name, &template); - if (r != -EINVAL) + if (r < 0 && r != -EINVAL) return log_error_errno(r, "Failed to determine template name: %m"); if (r >= 0) { r = unit_file_find_path(lp, template, &path); |