mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
Fix signed (error) return from read in loop utils.
This commit is contained in:
@@ -282,7 +282,7 @@ static char *_sysfs_backing_file(const char *loop)
|
|||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
size_t len;
|
ssize_t len;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
if (stat(loop, &st) || !S_ISBLK(st.st_mode))
|
if (stat(loop, &st) || !S_ISBLK(st.st_mode))
|
||||||
|
|||||||
Reference in New Issue
Block a user