Received: from mail.redfish-solutions.com (mail.redfish-solutions.com [24.116.100.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31405192B96 for ; Sun, 6 Jul 2025 17:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=24.116.100.90 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751822724; cv=none; b=s8C5vy+yR2v9Hn6yVgTqCKaMfl1BV1J3DTj/v8/7Ncg0GlTMoj5vt7IJDCkoFM/q/m/di8t/7hcZKSjn6eWDPUANKop8IDGIWRDiEqmqGx2kfMxkkHUMDJx8fJLc9Fwy2w8H3V+jz6/APosUtL9WgbfYuyHKv+ZJAfSrkK+r7BQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751822724; c=relaxed/simple; bh=XK27KbPAJ5otUQX/xpOPR3afBdxnInQg4u+Qi18hJXg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hebdk9iALh/3FQbOIGU822HbxAeMzfCiN1AiyLzI2F9OZArzrl/dOP0cID8/83/iIx54SY60uiAxNjWL/f9P59wEIxzGTcP7DRd4bo4tTRM0fzM7OEiYaUmQMqMnV32wLD2/j+vU4yYpbFWI8NUqPdfytE1o9TlKlhNfJ4pdhNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=redfish-solutions.com; spf=pass smtp.mailfrom=redfish-solutions.com; arc=none smtp.client-ip=24.116.100.90 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=redfish-solutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redfish-solutions.com Received: from ubuntu24.redfish-solutions.com (ubuntu24.redfish-solutions.com [192.168.8.33]) (authenticated bits=0) by mail.redfish-solutions.com (8.18.1/8.18.1) with ESMTPSA id 566HOqv2171216 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 6 Jul 2025 11:24:52 -0600 From: "Philip Prindeville" To: netfilter-devel@vger.kernel.org Cc: Jan Engelhardt , Philip Prindeville Subject: [PATCH v2 1/1] asn: fix missing quiet checks in xt_asn_build Date: Sun, 6 Jul 2025 11:24:51 -0600 Message-ID: <20250706172452.92730-1-philipp@redfish-solutions.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.6 on 192.168.8.3 From: Philip Prindeville Conceivably someone might want to run a refresh of the ASN database from within a script, particularly an unattended script such as a cron job. Do not generate summary output in that case. Signed-off-by: Philip Prindeville --- asn/xt_asn_build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asn/xt_asn_build b/asn/xt_asn_build index 63019ca689c56d5c9c686838fc4cc758047887e5..81c4965e572bbc7857a4832e0b80669104fe209f 100755 --- a/asn/xt_asn_build +++ b/asn/xt_asn_build @@ -12,6 +12,7 @@ use Socket qw(AF_INET AF_INET6 inet_pton); use warnings; use Text::CSV_XS; # or trade for Text::CSV use strict; +$| = 1; my $csv = Text::CSV_XS->new({ allow_whitespace => 1, @@ -189,7 +190,7 @@ sub writeASN printf "%5u IPv%s ranges for %s\n", scalar(@ranges), ($family == AF_INET ? '4' : '6'), - $asn_number; + $asn_number unless ($quiet); my $file = "$target_dir/".$asn_number.".iv".($family == AF_INET ? '4' : '6'); if (!open($fh, '>', $file)) { -- 2.43.0