Initialize is_block so operations using it work correctly with block
device.
Fixes: commit 48d1e2066c1f9ea73cbad19e86565960ef7fbebf
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
copy/file-ops.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/copy/file-ops.c b/copy/file-ops.c
index 937620d..6d098c2 100644
--- a/copy/file-ops.c
+++ b/copy/file-ops.c
@@ -66,6 +66,7 @@ file_create (const char *name, int fd, off_t st_size, bool is_block)
rwf->rw.ops = &file_ops;
rwf->rw.name = name;
rwf->fd = fd;
+ rwf->is_block = is_block;
if (is_block) {
/* Block device - ignore size passed in. */
--
2.26.2