> @@ -594,9 +595,14 @@ lzc_receive_impl(const char *snapname, nvlist_t *props,
> const char *origin,
> (void) strlcpy(zc.zc_string, origin, sizeof (zc.zc_string));
>
> /* zc_begin_record is non-byteswapped BEGIN record */
> - error = recv_read(fd, &zc.zc_begin_record, sizeof (zc.zc_begin_record));
> - if (error != 0)
> - goto out;
> + if (begin_record == NULL) {
> + error = recv_read(fd, &zc.zc_begin_record,
> + sizeof (zc.zc_begin_record));
> + if (error != 0)
> + goto out;
> + } else {
> + zc.zc_begin_record.drr_u.drr_begin = *begin_record;
Will do.
---
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/30/files#r43569650
_______________________________________________
developer mailing list
developer@open-zfs.org
http://lists.open-zfs.org/mailman/listinfo/developer