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
This commit is contained in:
trasz 2016-05-26 14:19:24 +00:00
parent 23b0817bc1
commit cffffee812

View File

@ -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");