From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by sourceware.org (Postfix) with ESMTPS id 12FE13856257 for ; Wed, 1 Jun 2022 17:40:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 12FE13856257 Received: by mail-oi1-x233.google.com with SMTP id r206so3547341oib.8 for ; Wed, 01 Jun 2022 10:40:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JHKCYGqRNHTEkmvZVPbB+om6PjP6G/pBipISEYkZG9c=; b=fRRskU2q9MCcve1Qv7ihCNpU1ZTUNF0LPPfPjP21Y3sRNFTKSmWURproAZoYh1VQMF 9I5ArQzsDHrhwIFB0pnBajKQszoX0L+sWBklDhN0PuNE0t3FRKukquL0yP8KLMNjf4c/ Mmj0V0KpwBfgNg3kpSEOkQv/cEr3tFsicrHGnIVnupEF+X0yPIRSAsnoh4B6rs1DoDKQ QAtb3pIB97u96SBk93cjjXEK9PE49bWmvZQlm1H22i+Sg7wvCzMNM9TDB9W8stEKkZvB 8FLpWcRz4fI1QUrZMDsAvtFtOUikSVxK1Pdo8wDMDN+1E6qZimRJL+V0KrRBZWMKBkdp 41bw== X-Gm-Message-State: AOAM531lx6ppnvwWx8EF6L4Ir35f3wS3meupBb5AQt0OYcY6ZF7MGZvU sXu8qqr+o0A5khOxgbPN2+559vbOoCevkw== X-Google-Smtp-Source: ABdhPJyFDAfKJ8GH5sxfP9GJd9YHAbBHnoDoeYHV8cD3VZvKvMQYhgWQRrAKjHpO9TgGt/O2RaPMDA== X-Received: by 2002:a05:6808:f8a:b0:32b:f23e:898b with SMTP id o10-20020a0568080f8a00b0032bf23e898bmr338410oiw.286.1654105214257; Wed, 01 Jun 2022 10:40:14 -0700 (PDT) Received: from birita.. ([2804:431:c7ca:e39c:a183:7f80:9e50:177b]) by smtp.gmail.com with ESMTPSA id l14-20020a0568301d6e00b0060ae954bf27sm1052578oti.62.2022.06.01.10.40.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 10:40:14 -0700 (PDT) From: Adhemerval Zanella To: libc-stable@sourceware.org Subject: [COMMITTED 2.35 4/8] posix: Use 64 bit stat for fpathconf (_PC_ASYNC_IO) (BZ# 29208) Date: Wed, 1 Jun 2022 14:40:02 -0300 Message-Id: <20220601174006.219504-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220601174006.219504-1-adhemerval.zanella@linaro.org> References: <20220601174006.219504-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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-stable@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-stable mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2022 17:40:16 -0000 This is a missing spot initially from 52a5fe70a2c77935. Checked on i686-linux-gnu. (cherry picked from commit 6e7137f28c9d743d66b5a1cb8fa0d1717b96f853) --- NEWS | 1 + sysdeps/posix/fpathconf.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 6783d18015..4757dea7ab 100644 --- a/NEWS +++ b/NEWS @@ -35,6 +35,7 @@ The following bugs are resolved with this release: [29203] libc: daemon is not y2038 aware [29204] libc: getusershell is not 2038 aware [29207] libc: posix_fallocate fallback implementation is not y2038 + [29208] libc: fpathconf(_PC_ASYNC_IO) is not y2038 aware Version 2.35 diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c index 216f2a9c8d..4b215e0600 100644 --- a/sysdeps/posix/fpathconf.c +++ b/sysdeps/posix/fpathconf.c @@ -131,9 +131,9 @@ __fpathconf (int fd, int name) #ifdef _POSIX_ASYNC_IO { /* AIO is only allowed on regular files and block devices. */ - struct stat64 st; + struct __stat64_t64 st; - if (__fstat64 (fd, &st) < 0 + if (__fstat64_time64 (fd, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode))) return -1; else -- 2.34.1