From ae7b59f5093181e52deb37d3d9f9bed64d75daf8 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 25 Mar 2024 16:38:52 +0100 Subject: [PATCH] cov: check for syscall resuls --- lib/device/filesystem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/device/filesystem.c b/lib/device/filesystem.c index 864187820..78dc99b91 100644 --- a/lib/device/filesystem.c +++ b/lib/device/filesystem.c @@ -88,7 +88,9 @@ static int _get_crypt_path(dev_t lv_devt, char *lv_path, char *crypt_path) ret = 1; break; } - closedir(dr); + if (closedir(dr)) + log_sys_debug("closedir", holders_path); + if (ret) log_debug("Found holder %s of %s.", crypt_path, lv_path); else