diff options
Diffstat (limited to 'send-test.c')
-rw-r--r-- | send-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/send-test.c b/send-test.c index af8229e3..4645b898 100644 --- a/send-test.c +++ b/send-test.c @@ -420,7 +420,7 @@ int main(int argc, char **argv) io_send.flags = BTRFS_SEND_FLAG_NO_FILE_DATA; ret = ioctl(subvol_fd, BTRFS_IOC_SEND, &io_send); - if (ret) { + if (ret < 0) { ret = errno; fprintf(stderr, "ERROR: send ioctl failed with %d: %s\n", ret, strerror(ret)); |