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:
parent
23b0817bc1
commit
cffffee812
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user