Commit 71d73834 authored by Milan Broz's avatar Milan Broz

Merge branch 'eviche/cryptsetup-patch-1'

parents 45fa8e72 2c833c23
......@@ -155,9 +155,9 @@ ssize_t write_blockwise(int fd, int bsize, void *orig_buf, size_t count)
if (r < bsize)
bsize = r;
r = lseek(fd, -bsize, SEEK_CUR);
if (r < 0)
if (lseek(fd, -bsize, SEEK_CUR) < 0)
goto out;
memcpy(hangover_buf, (char*)buf + solid, hangover);
r = write_buffer(fd, hangover_buf, bsize);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment