From nobody Mon Feb 9 12:11:17 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 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=1574250157; cv=none; d=zoho.com; s=zohoarc; b=CsXzVq7x5gFjfJeIHIVSVcNLet8bCKJ57BET+GZ5YeZC5VveZDFMuT6alKVZpR4B7CmKAOZputjrPw14PZSBzD8anuQq32PQ8JpOc1CbCY0IBAEJWctMuDyuWRj4XC5Ytj+5vih3l10JgE0Y0bCKt17aeAf+JfHedBijemxnW9I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574250157; 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=jDuvfm6mo29ZAdgTw7yxFiD7fLBGwVTB+k9M3Crrj1I=; b=nNScjHUBINu4i7lu53KLgsizna7BWUUWzivc0r26P049ZOMZk+ncg+i4hNKSNJ3O+ZLoLBognQx7IEU6qXCNQVlFpxBK4BwK4gT/PkAFcxTI/BYq6zbikHmYasvHOmDt2VwTsC2YBkeYot326ylH+xH727WZ6CuZLQfdiwo5lHw= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1574250157518441.22540541099715; Wed, 20 Nov 2019 03:42:37 -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-7-cKHPadlINxmiSYP3YmpHJg-1; Wed, 20 Nov 2019 06:42:34 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C5C1D8CFAB4; Wed, 20 Nov 2019 11:42:27 +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 9283F5F79B; Wed, 20 Nov 2019 11:42:27 +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 406604E562; Wed, 20 Nov 2019 11:42:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xAKBgHT6029562 for ; Wed, 20 Nov 2019 06:42:17 -0500 Received: by smtp.corp.redhat.com (Postfix) id A008110375F5; Wed, 20 Nov 2019 11:42:17 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2A81310375DC for ; Wed, 20 Nov 2019 11:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574250156; 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=jDuvfm6mo29ZAdgTw7yxFiD7fLBGwVTB+k9M3Crrj1I=; b=E8xR+kLUeZfvf67JQUu+caURpDp/Ious8Amborm0y55x+LIbQ7XLpyr2kr3T3e6wyuWoY6 aEPREclrJ73aRUjam74IgNdEIWuD7I+Em+/hKzw+IKWTKcsTPdNe17WNzeOhefNuC2Uwxe 1HVqfFPX3LHYkEgxcEU8Y3iqSeoSPsw= From: Peter Krempa To: libvir-list@redhat.com Date: Wed, 20 Nov 2019 12:42:06 +0100 Message-Id: <2c62c4747ba0aa6658ce921a532139d86f0865b1.1574249934.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 6/9] syntax-check: forbid usage of snprintf 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.15 X-MC-Unique: cKHPadlINxmiSYP3YmpHJg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" From: Pavel Hrdina Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- build-aux/syntax-check.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 6b62e20ed4..f1e976ec76 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -482,6 +482,11 @@ sc_prohibit_sprintf: halt=3D'use g_snprintf, not sprintf' \ $(_sc_search_regexp) +sc_prohibit_snprintf: + @prohibit=3D'\' \ + halt=3D'use g_snprintf, not snprintf' \ + $(_sc_search_regexp) + sc_prohibit_readlink: @prohibit=3D'\