From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by sourceware.org (Postfix) with ESMTPS id 6830B3836E63 for ; Wed, 1 Jun 2022 17:00:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6830B3836E63 Received: by mail-oi1-x22c.google.com with SMTP id k11so3381642oia.12 for ; Wed, 01 Jun 2022 10:00:39 -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=RwrixkcjAKcufatI5Zb8eJqbaoWqc0V52+Yz5BTKOEQ=; b=xifF/4UlTlsJCbR2p0dbw1WQOM0mLy7RpaU65cez5LpMN9ILxksj15ZLtYvY/nRgno 8Xdfp/PJd5pA10IDN8WSY1Oa1YWh39GMfEC8PmnIjpwXjJwste2Nmg9jZBMd/JvhQjpL pUzqTd1SwDbb5RMFiYlT2t5TFvoapxd7Mlrh69x9rRP51jS0moUZNuMJTcU2rNpdnSXu qSC5QBQTI6hJz81/B1R/1aJk0FUtEEm7c58SRGaVBH9+ZcPdcvD5TXrpRMeYIvyVFpQe UnVlj1sCueOEh4EciGJreRPCf5VT5bKC3iGe55JvS3cNxgVPk2PvQ2Wr1wdnzfLU/V/p rQSA== X-Gm-Message-State: AOAM5301ZUl2qSEac1gJmZguTX71mKXaUf2sQvxuwIG2uXhVsBicVwq9 fpDLC0t3jndjCGWzdgnaU7VatOo+xHxs+Q== X-Google-Smtp-Source: ABdhPJxPvbBPNuLuN5gHl0lLOFLJcLlbnTDPyOP6Zwxz0T2RJ5hYxsoyBczW1BlfdcG90AEC9dLZYw== X-Received: by 2002:a05:6808:23c2:b0:32b:d6d6:e910 with SMTP id bq2-20020a05680823c200b0032bd6d6e910mr13063866oib.12.1654102838558; Wed, 01 Jun 2022 10:00:38 -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.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 10:00:38 -0700 (PDT) From: Adhemerval Zanella To: libc-stable@sourceware.org Subject: [COMMITTED 2.34 6/8] inet: Use 64 bit stat for ruserpass (BZ# 29210) Date: Wed, 1 Jun 2022 14:00:26 -0300 Message-Id: <20220601170028.2638215-6-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.3 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:41 -0000 This is a missing spot initially from 52a5fe70a2c77935. Checked on i686-linux-gnu. (cherry picked from commit 3cd4785ea02cc3878bf21996cf9b61b3a306447e) --- NEWS | 1 + inet/ruserpass.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index ee2234b917..ad6de8304f 100644 --- a/NEWS +++ b/NEWS @@ -106,6 +106,7 @@ The following bugs are resolved with this release: [29207] libc: posix_fallocate fallback implementation is not y2038 [29208] libc: fpathconf(_PC_ASYNC_IO) is not y2038 aware [29209] libc: isfdtype is not y2038 aware + [29210] network: ruserpass is not y2038 aware Version 2.34 diff --git a/inet/ruserpass.c b/inet/ruserpass.c index d61a72877d..75e2a06552 100644 --- a/inet/ruserpass.c +++ b/inet/ruserpass.c @@ -95,7 +95,7 @@ ruserpass (const char *host, const char **aname, const char **apass) char *hdir, *buf, *tmp; char myname[1024], *mydomain; int t, usedefault = 0; - struct stat64 stb; + struct __stat64_t64 stb; hdir = __libc_secure_getenv("HOME"); if (hdir == NULL) { @@ -174,7 +174,7 @@ next: break; case PASSWD: if (strcmp(*aname, "anonymous") && - __fstat64(fileno(cfile), &stb) >= 0 && + __fstat64_time64(fileno(cfile), &stb) >= 0 && (stb.st_mode & 077) != 0) { warnx(_("Error: .netrc file is readable by others.")); warnx(_("Remove 'password' line or make file unreadable by others.")); -- 2.34.1