From patchwork Wed Sep 8 22:44:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 1526029 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=aurel32.net header.i=@aurel32.net header.a=rsa-sha256 header.s=202004.hall header.b=eeffgycU; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H4cfZ4CBsz9sVw for ; Thu, 9 Sep 2021 08:45:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B8CEE3864816 for ; Wed, 8 Sep 2021 22:45:23 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by sourceware.org (Postfix) with ESMTPS id 93B42384F00D for ; Wed, 8 Sep 2021 22:45:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 93B42384F00D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=aurel32.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=aurel32.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Content-Type:From:Reply-To:Subject:Content-ID: Content-Description:In-Reply-To:References:X-Debbugs-Cc; bh=KbihpjmIJE5S6ynrKFBfSo+0Q/emHCrpW8RvfhmF6tY=; b=eeffgycUwY6olKIy2icSma2c7X gsHdefzfLpug61ab4vV+nYwskK4zikK0m5l0Wx6Ut5qZ2B47xYN3AJdSLoSpDL3Zq9LAy8Sf4OvXZ qfhjVTYzeiS1L8qc827Vfk55lXlCANjG0k7m7iSv2qJSGubBVmTrO0dhP+8AGQxX398JwHsXdq+pm nSvYPIJQdf/k2JdwIui92Bn37s9faWDo5LCDYGwUTB65aYaoWqphesXdXqq1Wcfx5XhY/SI5dYLUB T9ON3eAHnSv/FXsPngWHzYw2YWWJlNRV9K7MzerKPw5ircCGaW9EeY+64/uv5UzU3s+Ts2Jzkk9iw n5AVtifQ==; Received: from [2a01:e34:ec5d:a741:8a4c:7c4e:dc4c:1787] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mO6Jc-0005yC-AC; Thu, 09 Sep 2021 00:45:12 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.94.2) (envelope-from ) id 1mO6JZ-00GOxf-SC; Thu, 09 Sep 2021 00:45:09 +0200 From: Aurelien Jarno To: libc-alpha@sourceware.org Subject: [COMMITTED 2.32] posix: Correct attribute access mode on readlinkat [BZ #27024]. Date: Thu, 9 Sep 2021 00:44:53 +0200 Message-Id: <20210908224453.3908446-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Sebor Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" From: Martin Sebor (cherry picked from commit 2cd361b5114ff3f2f55684458d8bf9836c624b90) --- posix/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posix/unistd.h b/posix/unistd.h index 32b8161619..aac164dc9c 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -831,7 +831,7 @@ extern int symlinkat (const char *__from, int __tofd, /* Like readlink but a relative PATH is interpreted relative to FD. */ extern ssize_t readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) - __THROW __nonnull ((2, 3)) __wur __attr_access ((__read_only__, 3, 4)); + __THROW __nonnull ((2, 3)) __wur __attr_access ((__write_only__, 3, 4)); #endif /* Remove the link NAME. */