diff --git a/src/core/unit.c b/src/core/unit.c index 4a5fa4005c..5a17efdbcb 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -4726,7 +4726,7 @@ void unit_warn_if_dir_nonempty(Unit *u, const char* where) { assert(where); r = dir_is_empty(where); - if (r > 0) + if (r > 0 || r == -ENOTDIR) return; if (r < 0) { log_unit_warning_errno(u, r, "Failed to check directory %s: %m", where);