diff options
Diffstat (limited to 'src/core/load-dropin.c')
-rw-r--r-- | src/core/load-dropin.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/load-dropin.c b/src/core/load-dropin.c index ff3636149a..3180f911bb 100644 --- a/src/core/load-dropin.c +++ b/src/core/load-dropin.c @@ -38,10 +38,12 @@ static bool unit_name_compatible(const char *a, const char *b) { return true; r = unit_name_template(a, &prefix); - if (r < 0) { - log_oom(); + if (r == -EINVAL) + /* not a template */ + return false; + if (r < 0) + /* oom, or some other failure. Just skip the warning. */ return true; - } /* an instance name points to a target that is just the template name */ if (streq(prefix, b)) |