From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 0B329385380D for ; Wed, 1 Jun 2022 17:00:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0B329385380D Received: by mail-ot1-x335.google.com with SMTP id t22-20020a0568301e3600b0060b333f7a1eso1693316otr.0 for ; Wed, 01 Jun 2022 10:00:37 -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=eeWThJTV7WhoLX8KpNHJDpkrTe2H0WCrIeCZnUOpy+s=; b=y+hXbDpIWKxzK9JdDGzTeRW292OKMwfwZKRZfEkehzAL5IeylxM0STAR4Z25Nqgt9v NtZWkmflhqQPXe+fjacT3/uHy7CkXJdG4OQrgbgIX0EFB6WQYEMSySp0coscnVQvB4xS p6Wx2/m8Sh0ERDzWiA5fuZuU1dQlrL+o/bkKX4at6JRF8iBd5tnyQsY4jjHqQMzz/BZb 0dngzqDh10JpEJbjkRwyQaokZDDm9vYRG9mO2vwLBBMMP7+5dRdjDf+HtXDY77WYLFMX rhuthR0hEKCjFQMatt19spLdjx/eusv3Cj84rT50lmP+0b33UHWbnybg9Xi3FOGNWOFp wcpA== X-Gm-Message-State: AOAM530LNlLPe2QzmGB7LBge3D2ZYV0SfJbpADyoHUaLLEK2ZvrR88U1 dHYA4dvhAs7lI74FI86fPZ35GGWYxKhuRQ== X-Google-Smtp-Source: ABdhPJy6qf7i8i0otKj1EutPt5OBopBkEWfW203Gu0AbhMtzO85Duima67B85SNWr1K0jtm7hgbl7A== X-Received: by 2002:a9d:1905:0:b0:60b:35a:297d with SMTP id j5-20020a9d1905000000b0060b035a297dmr247200ota.315.1654102836106; Wed, 01 Jun 2022 10:00:36 -0700 (PDT) Received: from birita.. ([2804:431:c7ca:e39c:a183:7f80:9e50:177b]) by smtp.gmail.com with ESMTPSA id bh35-20020a056808182300b00325cda1ff95sm1257658oib.20.2022.06.01.10.00.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 10:00:35 -0700 (PDT) From: Adhemerval Zanella To: libc-stable@sourceware.org Subject: [COMMITTED 2.34 4/8] posix: Use 64 bit stat for fpathconf (_PC_ASYNC_IO) (BZ# 29208) Date: Wed, 1 Jun 2022 14:00:24 -0300 Message-Id: <20220601170028.2638215-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220601170028.2638215-1-adhemerval.zanella@linaro.org> References: <20220601170028.2638215-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 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:00:38 -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 6274350737..7e3a759937 100644 --- a/NEWS +++ b/NEWS @@ -104,6 +104,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.34 diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c index ec0e780466..e673f20161 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