mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
core: Avoid empty directory warning when we are bind-mounting a file (#8069)
This commit is contained in:
committed by
Lennart Poettering
parent
9b4453b6ee
commit
3f602115b7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user