Fix signed (error) return from read in loop utils.

This commit is contained in:
Milan Broz
2024-01-17 10:40:14 +01:00
parent d15447814a
commit cfdb1b93af

View File

@@ -282,7 +282,7 @@ static char *_sysfs_backing_file(const char *loop)
{
struct stat st;
char buf[PATH_MAX];
size_t len;
ssize_t len;
int fd;
if (stat(loop, &st) || !S_ISBLK(st.st_mode))