Skip to content
Browse files

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,

Signed-off-by: Ryan Moeller <>
  • Loading branch information...
freqlabs committed May 14, 2019
1 parent f378f42 commit 33359a9832d56f4c3f93415dfb213cab553b2692
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/libzfs/libzfs_diff.c
@@ -478,7 +478,7 @@ differ(void *arg)
if (err)
return ((void *)-1);
if (di->zerr) {
ASSERT(di->zerr == EINVAL);
ASSERT(di->zerr == EPIPE);
(void) snprintf(di->errbuf, sizeof (di->errbuf),
"Internal error: bad data from diff IOCTL"));

0 comments on commit 33359a9

Please sign in to comment.
You can’t perform that action at this time.