From patchwork Tue Dec 5 11:23:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Cambus X-Patchwork-Id: 81404 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2E8793845756 for ; Tue, 5 Dec 2023 11:23:27 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by sourceware.org (Postfix) with ESMTPS id EF0DF385AC2B for ; Tue, 5 Dec 2023 11:23:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EF0DF385AC2B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=statdns.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=statdns.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EF0DF385AC2B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=66.111.4.26 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701775395; cv=none; b=eIl09wI1EA6tiTs8g0MQx1KwO7h2KPK82quwHITWLQ5dFMArFEY4cK/34SNpn785CuN3JAkiJztFKCebBgmFx0r9DrHtmOWL3pjvbMhJarZprJuLqiC7lyvyUJuZTcs8R+yqReIquXfEmlVzXTIGigEiG3cL7gN3uCed3h1Oh8g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701775395; c=relaxed/simple; bh=BHeuQGEzipO36e5V643dNTRGBPbbrOUjwhhMjUbs9FE=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=gyFFvjXAMBQshP0KKOnKsi9RBLQdLu2kQ8nj2LAwrfGEflh1IsduQKfbpUv9fcPgx8GQ7HHjbAwGs6zXzi5qWTYA8S8TMbbApqfwVEMxCm1bp8OS1IVfDALUVkq5ER5w8aEEeuXKasZvA+6v9peB8JxZtth26xOo1uP1tVxYWTo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 28F495C0170 for ; Tue, 5 Dec 2023 06:23:12 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 05 Dec 2023 06:23:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=statdns.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1701775392; x=1701861792; bh=kSUkZnxAq4pCwMMKO882m3zhh MZRHTgfM7qGGY4G0gE=; b=sqGYURX4IE2lYdDOomd00066jHExFe447bwJ9ezWG sTat+NdEwkzkcPzfkFccoDgXkPhlHjyhrdi/c/JIFr60tILxYHbCToKjy9MpqCF0 AmAkA6/IOvXkLRN4zSVFXKuAW5mYUXw/lPIUPf2OAihB4tfg9HypylGOWb9Qx13d 65itQ1vSdTVBVgqJodNG0sW0ZwnuSjo4kcvOVk6FRBahTrZg0XMeMjbr5AgFK9Q9 yg+ASb40ewhci/M1BJDrASme23FjeZRdpA45eOlj4kzavXZWUP4fT9eDpjfC8D/c /WRchHue5aJ9Q1sYn2Ldb0t1KWoj1l9SAaQGyAoGnuHlw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701775392; x=1701861792; bh=kSUkZnxAq4pCwMMKO882m3zhhMZRHTgfM7q GGY4G0gE=; b=OrtZa2iLSoANftlULSPRlb3xtO3Ph5rCZrpWVElWF+mtGApQd7/ b/k9YEByE/aLoDaH0eHnGBpTnJPF11agRnjfSM3t0W3eTDQwfj03VrQNL+OvQEbd PcmsYaQ75QzJIjojkGmkWXne5QXpIz0qgHtMpk6ySkY5VFYJuZUYvp0hz08VrPgq 8bzQ4yeCN0mL3crE7yLNq0TQMX8nyoUyBOaIEWq3LA+3seEeYdX1BZTy0nL0Ku6x l/2diUIX48pW+sPLGhTaEXVjO0+z6vjnPMtO8qKJuoCH32nNYZOAQbsE4Wa3tUNZ bz5k1WI5Ep4GFzjwcsPOmk8hyQfdaBOkwSg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudejkedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttd dtvdenucfhrhhomhephfhrvgguvghrihgtucevrghmsghushcuoehfrhgvugesshhtrght ughnshdrtghomheqnecuggftrfgrthhtvghrnhepgfekjeelledtheevffejfefhieevje eltdffveelkefhteehleduueeufeefteetnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepfhhrvggusehsthgrthgunhhsrdgtohhm X-ME-Proxy: Feedback-ID: ic0e9462c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 5 Dec 2023 06:23:11 -0500 (EST) Date: Tue, 5 Dec 2023 12:23:07 +0100 From: Frederic Cambus To: libc-alpha@sourceware.org Subject: [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol. Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Otherwise the warning message for the getwd symbol ends up being duplicated. Signed-off-by: Frederic Cambus Reviewed-by: Adhemerval Zanella --- debug/getwd_chk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug/getwd_chk.c b/debug/getwd_chk.c index 850aa1aa14..cf61d8d5a0 100644 --- a/debug/getwd_chk.c +++ b/debug/getwd_chk.c @@ -29,5 +29,5 @@ __getwd_chk (char *buf, size_t buflen) return res; } -link_warning (getwd, +link_warning (__getwd_chk, "the `getwd' function is dangerous and should not be used.")