Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0D36C001DF for ; Wed, 2 Aug 2023 16:10:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230422AbjHBQKX (ORCPT ); Wed, 2 Aug 2023 12:10:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231665AbjHBQKX (ORCPT ); Wed, 2 Aug 2023 12:10:23 -0400 Received: from orbyte.nwl.cc (orbyte.nwl.cc [IPv6:2001:41d0:e:133a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30BB1E1 for ; Wed, 2 Aug 2023 09:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nwl.cc; s=mail2022; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=T4blAogervW9vczVa+/4GETelyACZm4HV6nWJTc1bBU=; b=SZ4JSOQthydSx6gYXMkAuBWKxy H7jyqlEGIHjnIP13+C5+ZnsDYByiawxPI4bufO+lOsKjdmS1ab9cGUoesgH6dXK2/5+ri9N7951RP dOsHP0SQSu8UAFDqpViwbpuashxDsz2J7xCusO+wL/AKGHqxOj9K6j5YDHwfzxCaXGJ+q51C6z4Pg OWL5LG2NQBU+XRNA9oyx+GGLwW3HBjg/t4TZ1xNSVLjY2a1S92UZQoctbhFmJoeSnBuw+Ka/Zy9WB G73V60MEOrHDW38gNz+olzcDc+9iIgqs/mJaYvvPDg2ULbrlmUB8CH+avhqlf1/JDzNZ79smYaVAx 6WqE7Z6A==; Received: from localhost ([::1] helo=xic) by orbyte.nwl.cc with esmtp (Exim 4.94.2) (envelope-from ) id 1qREQW-0004vX-Cz; Wed, 02 Aug 2023 18:10:20 +0200 From: Phil Sutter To: netfilter-devel@vger.kernel.org Cc: Steven Barre Subject: [iptables PATCH v2 01/15] man: iptables.8: Extend exit code description Date: Wed, 2 Aug 2023 18:09:09 +0200 Message-Id: <20230802160923.17949-2-phil@nwl.cc> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230802160923.17949-1-phil@nwl.cc> References: <20230802160923.17949-1-phil@nwl.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Codes 3 and 4 were missing. Reported-by: Steven Barre Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1353 Signed-off-by: Phil Sutter --- iptables/iptables.8.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/iptables/iptables.8.in b/iptables/iptables.8.in index f81c632f2be86..2dd1406615106 100644 --- a/iptables/iptables.8.in +++ b/iptables/iptables.8.in @@ -410,9 +410,12 @@ the default setting. iptables can use extended packet matching and target modules. A list of these is available in the \fBiptables\-extensions\fP(8) manpage. .SH DIAGNOSTICS -Various error messages are printed to standard error. The exit code -is 0 for correct functioning. Errors which appear to be caused by -invalid or abused command line parameters cause an exit code of 2, and +Various error messages are printed to standard error. The exit code is 0 for +correct functioning. Errors which appear to be caused by invalid or abused +command line parameters cause an exit code of 2. Errors which indicate an +incompatibility between kernel and user space cause an exit code of 3. Errors +which indicate a resource problem, such as a busy lock, failing memory +allocation or error messages from kernel cause an exit code of 4. Finally, other errors cause an exit code of 1. .SH BUGS Bugs? What's this? ;-) -- 2.40.0