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