diff options
author | trasz <trasz@FreeBSD.org> | 2016-05-26 14:19:24 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-05-26 14:19:24 +0000 |
commit | cffffee8126370c8cdf0611dffdbfa0faf7c3fad (patch) | |
tree | c888be6ebb0562f49cf5d88ad14ea4d5afd19121 /usr.bin | |
parent | 23b0817bc19bceb04a931bc952db8f8fe91a485d (diff) | |
download | FreeBSD-src-cffffee8126370c8cdf0611dffdbfa0faf7c3fad.zip FreeBSD-src-cffffee8126370c8cdf0611dffdbfa0faf7c3fad.tar.gz |
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
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/iscsictl/iscsictl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/iscsictl/iscsictl.c b/usr.bin/iscsictl/iscsictl.c index 508e22b..b96c897 100644 --- a/usr.bin/iscsictl/iscsictl.c +++ b/usr.bin/iscsictl/iscsictl.c @@ -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"); |