From nobody Sun Feb 8 02:20:56 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=1573662837; cv=none; d=zoho.com; s=zohoarc; b=OklToRdPJXTPFzo6SvDR8pGrB4wd3w3RDyAqdtlzc5vV2mgeD31cohnWTJ75juoaXMguzjQFdToQUWucYMTRywR0gl2FOsKMAn0GMXUz8HiEeR18Xfq2gb/dZUqgf+Kfa6dMO3vOquQq5DW7Qw4w+xoWHowaTYYeMa3t8dpMQwc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573662837; 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=jq/raf61pI/o3slhAfB1qEue/tSsEwxWo6EgJRy4J/0=; b=JRt0AXZpC4LK/G9finyy8wa7kxXc6ussTMBTatRx7LD/f8quBDG7zaGLCg5yJ2mfUI/7lrMK/MiGcjIxfjf5+gIII92kvUOEhfSecQfZ21XuVaEeyQ3g0z5QBBPSvpZDc86Wu2X1zY7JZCTL+zrkqZee1G90gHHsufrUmwzZWYY= 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 1573662837404915.9821791252117; Wed, 13 Nov 2019 08:33:57 -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-185-3DJIHfd2Pn6eSADa7xU-_Q-1; Wed, 13 Nov 2019 11:33:54 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A3CBD1597B50; Wed, 13 Nov 2019 16:33:47 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7149E2A168; Wed, 13 Nov 2019 16:33:47 +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 282BA18089D7; Wed, 13 Nov 2019 16:33:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xADGXZjQ021842 for ; Wed, 13 Nov 2019 11:33:35 -0500 Received: by smtp.corp.redhat.com (Postfix) id 04ABF69192; Wed, 13 Nov 2019 16:33:35 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.43.2.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 83A0A67E52 for ; Wed, 13 Nov 2019 16:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573662836; 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=jq/raf61pI/o3slhAfB1qEue/tSsEwxWo6EgJRy4J/0=; b=HA9ju7WAZM81hF3rkJfvtB9lWHzaRH433yzWJ0e5fCoXKakzVwUXrn7nRUSLTIiBWN2oEq riblHAefwYz+LT2r4x4tWu/PPa7cRsZvxHd93HjpH6Jopcf2ORgBzsrHiA6zyDv8akUVSW jvrJTCelQHTjO6h2xDQYS55WMf1RfDM= From: Pavel Hrdina To: libvir-list@redhat.com Date: Wed, 13 Nov 2019 17:33:27 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 4/4] 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.84 on 10.5.11.23 X-MC-Unique: 3DJIHfd2Pn6eSADa7xU-_Q-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" Signed-off-by: Pavel Hrdina --- new in v2 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 ff1198ca73..78458dce53 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -469,6 +469,11 @@ sc_prohibit_sprintf: halt=3D'use g_snprintf, not sprintf' \ $(_sc_search_regexp) =20 +sc_prohibit_snprintf: + @prohibit=3D'\' \ + halt=3D'use g_snprintf, not snprintf' \ + $(_sc_search_regexp) + sc_prohibit_readlink: @prohibit=3D'\