svn commit: r300745 - head/usr.bin/iscsictl
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu May 26 14:19:25 UTC 2016
Author: trasz
Date: Thu May 26 14:19:24 2016
New Revision: 300745
URL: https://svnweb.freebsd.org/changeset/base/300745
Log:
Make iscsictl(8) actually report non-zero status on errors. The "failed"
is negative, because the error returned from calls to ioctl(2) is negative.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Modified:
head/usr.bin/iscsictl/iscsictl.c
Modified: head/usr.bin/iscsictl/iscsictl.c
==============================================================================
--- head/usr.bin/iscsictl/iscsictl.c Thu May 26 14:17:57 2016 (r300744)
+++ head/usr.bin/iscsictl/iscsictl.c Thu May 26 14:19:24 2016 (r300745)
@@ -987,7 +987,7 @@ main(int argc, char **argv)
if (error != 0)
xo_err(1, "close");
- if (failed > 0)
+ if (failed != 0)
return (1);
xo_close_container("iscsictl");
More information about the svn-src-head
mailing list