diff options
author | yangmingtai <961612727@qq.com> | 2021-12-06 17:06:13 +0800 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-07 01:28:07 +0900 |
commit | 5896a9ebdbe4d38c01390d0a5e82f9fcb4971059 (patch) | |
tree | 764cf423ef9286bb541d84703b0737ddc529d745 /src/core/path.c | |
parent | efeecf4010f7463f2a7feafbf38159d83a5ff679 (diff) | |
download | systemd-5896a9ebdbe4d38c01390d0a5e82f9fcb4971059.tar.gz |
fix DirectoryNotEmpty when it comes to a Non-directory file
Diffstat (limited to 'src/core/path.c')
-rw-r--r-- | src/core/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/path.c b/src/core/path.c index 29ec66fd4d..bcd922901b 100644 --- a/src/core/path.c +++ b/src/core/path.c @@ -215,7 +215,7 @@ static bool path_spec_check_good(PathSpec *s, bool initial, bool from_trigger_no int k; k = dir_is_empty(s->path); - good = !(k == -ENOENT || k > 0); + good = !(IN_SET(k, -ENOENT, -ENOTDIR) || k > 0); break; } |