From owner-svn-src-head@freebsd.org Thu May 26 14:19:25 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2E62AB4BB04; Thu, 26 May 2016 14:19:25 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 002391A6E; Thu, 26 May 2016 14:19:24 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4QEJOnR070172; Thu, 26 May 2016 14:19:24 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4QEJOTv070171; Thu, 26 May 2016 14:19:24 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201605261419.u4QEJOTv070171@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Thu, 26 May 2016 14:19:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300745 - head/usr.bin/iscsictl X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2016 14:19:25 -0000 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");