diff options
author | Andrei Gherzan <andrei@gherzan.com> | 2018-02-06 15:35:52 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-02-06 16:35:52 +0100 |
commit | 3f602115b71e8dcbdf34f7193ecf91fc2506daa2 (patch) | |
tree | 2a606e7a591c7aa3837d00d4dcde76f469569b08 | |
parent | 9b4453b6ee471ebdd5365104f9f43d051f3f15e7 (diff) | |
download | systemd-3f602115b71e8dcbdf34f7193ecf91fc2506daa2.tar.gz |
core: Avoid empty directory warning when we are bind-mounting a file (#8069)
-rw-r--r-- | src/core/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |