]> git.proxmox.com Git - mirror_zfs.git/commit
Fix wrong assertion in libzfs diff error handling
authorRyan Moeller <ryan@freqlabs.com>
Mon, 20 May 2019 00:31:54 +0000 (17:31 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 20 May 2019 00:31:54 +0000 (17:31 -0700)
commit9dc41a769df164875d974c2431b2453e70e16c41
tree10f83b6a4e7e5f5bc7bc5b2ef85f1d9cb758b869
parente61b53475e859bd055d205a4d9659f576a9765d1
Fix wrong assertion in libzfs diff error handling

In compare(), all error cases set the error code to EPIPE, so when an
error is set, the correct assertion to make is that the error is EPIPE,
not EINVAL.

Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@freqlabs.com>
Closes #8743
lib/libzfs/libzfs_diff.c