1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cov: check for syscall resuls

This commit is contained in:
Zdenek Kabelac 2024-03-25 16:38:52 +01:00
parent b84702349f
commit ae7b59f509

View File

@ -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