diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-08-13 22:16:28 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-08-14 14:22:38 +0200 |
commit | e36c6210b7e1509206514dccedb73f7a1a5c4de1 (patch) | |
tree | fdabecbcfed033a95e0183d31d130c1162860626 | |
parent | Merge pull request #28827 from gioele/docs-fix-network-online-example-unit (diff) | |
download | systemd-e36c6210b7e1509206514dccedb73f7a1a5c4de1.tar.xz systemd-e36c6210b7e1509206514dccedb73f7a1a5c4de1.zip |
dissect-image: Fix mount_point_is_available()
We call dir_is_empty() to check if the directory is empty but don't
take the result into account when returning from the function.
-rw-r--r-- | src/shared/dissect-image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 6334c0cd22..b4fbc77177 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -2040,7 +2040,7 @@ static int mount_point_is_available(const char *where, const char *path, bool mi return false; if (r < 0) return log_debug_errno(r, "Failed to check directory \"%s\": %m", p); - return true; + return r > 0; } int dissected_image_mount( |