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"); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"