From nobody Mon Feb 9 09:08:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1615300020; cv=none; d=zohomail.com; s=zohoarc; b=ZtiNjbMlzCKXKzIF+pqU7sOO7DPYTWYSrUNgjyDQGuRP2gepMve/wKTsHW12opj1W8fgMtUWOlQqJTVMomE06u2ildVcN0qcqfMQMc4gqP6qP1Ab8WyOnHth96WRR/qpCGuA+MS+9uj/kVAOVJy8UnMttgI8NfUr6AR3X26HAbQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615300020; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zt/TU8oaxyHsjg4IfSWdx+iewCR6DRlUoTLL7pkNB2I=; b=aOyDCdkt5dcJQmOyzj8QqcGtGWH4rjOosMzjQ1vaLVqcDQK9p9Z+IZH9KGXN/0w31LctA7v3POAT15CgIY8O45xl3ST6laPwZCNu0pI8HclMIw5s7GEb/uzX9x1QqJ1L5W1vc6I9rRfBAEMuevGz+SokfQaNL3WQSHIq6kcnj5s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1615300020160127.4922373089504; Tue, 9 Mar 2021 06:27:00 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-318-40J4U4XAOPGETR7Ay604-A-1; Tue, 09 Mar 2021 09:26:55 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 30A921018F7B; Tue, 9 Mar 2021 14:26:48 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0D9386062F; Tue, 9 Mar 2021 14:26:48 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C669A57DC6; Tue, 9 Mar 2021 14:26:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 129EQXEm016603 for ; Tue, 9 Mar 2021 09:26:33 -0500 Received: by smtp.corp.redhat.com (Postfix) id 65D5A104FF; Tue, 9 Mar 2021 14:26:33 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.193.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id DB088196E3 for ; Tue, 9 Mar 2021 14:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615300019; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=zt/TU8oaxyHsjg4IfSWdx+iewCR6DRlUoTLL7pkNB2I=; b=TOOHpzEwjnAn54+Wose7Bsj6gGmsY/LfIVtJHSOM6IOwIcwN6bgvbYEbbwkkp8Frfsk5Mf H7wAYP473iU5Eev4HC/epPk3B69jbtE5mg2FEoLAkY+y+qNdl0hCqPXSfexQJj4kwB7CXi mQGm6w9nWgXkTEJ/3+XUfVrGapI3+/k= X-MC-Unique: 40J4U4XAOPGETR7Ay604-A-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 3/4] syntax-check: Update list of gethostname exceptions Date: Tue, 9 Mar 2021 15:26:24 +0100 Message-Id: <4f659ab27edb51852304d5685c8157dd7fa65766.1615299876.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" The only place where gethostname() is acceptable is in virGetHostnameImpl() which lives in src/util/virutil.c. Reflect this in the list of exceptions for the syntax-check rule. Signed-off-by: Michal Privoznik Reviewed-by: J=C3=A1n Tomko --- build-aux/syntax-check.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 2f4f932a5b..794ec326e4 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1910,7 +1910,7 @@ exclude_file_name_regexp--sc_prohibit_empty_lines_at_= EOF =3D \ exclude_file_name_regexp--sc_prohibit_fork_wrappers =3D \ (^(src/(util/(vircommand|virdaemon)|lxc/lxc_controller)|tests/testutils)= \.c$$) =20 -exclude_file_name_regexp--sc_prohibit_gethostname =3D ^src/util/vir(util|l= og)\.c$$ +exclude_file_name_regexp--sc_prohibit_gethostname =3D ^src/util/virutil\.c= $$ =20 exclude_file_name_regexp--sc_prohibit_internal_functions =3D \ ^src/(util/(viralloc|virutil|virfile)\.[hc]|esx/esx_vi\.c)$$ --=20 2.26.2