From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id DF0A6383D82E for ; Wed, 1 Jun 2022 17:40:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DF0A6383D82E Received: by mail-ot1-x32d.google.com with SMTP id g13-20020a9d6b0d000000b0060b13026e0dso1731883otp.8 for ; Wed, 01 Jun 2022 10:40:17 -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=QzZwHm4/rcFeefWlArHIJIyEUCt8/2oa8EwiNc2yCPE=; b=1tgaBOsZhINN0WWWc9KEFzI64vuQQArEWVEPkNaz4e0g4+1JF0e8EBuuDe0EYM4FA7 di0r/J+3wnL4OWBPAA7UBramRd5XS1PZEj3DhgNrUPJa8z0GDAbSTpOYPwot/jC2yq1U bG9l0lb2dmL0BQ+fVLgqOeMNGc4agJDBDelP3mTG0sNtyWyFWDqx+dyE3W5R4GWLGTrA c2IBZyuoog8aLaWJ51k1UUEt/OpTwNOeFCuAwpxnr4bwe23dwv8h49uQOB6jPV0udW0v TRNU1U4IeOVe1l/F5WPsQt3I+iwppUKdh49JP4gaOqKTf9OBkrk5V6pfIw3AkhbAy6dD 7FQA== X-Gm-Message-State: AOAM5318ixgdEbiirLWiBNKBaJLmW915/K/GZy49crJiBWcguep6epmD Esjk0UICG79iNRuEJeO3UV/4Nswzw0XWxg== X-Google-Smtp-Source: ABdhPJw+SgfZe0IU7LVHdZzs/tTln5B9Zs0YTaxt4dpN4zEh0nNPq+181tTLTdkV37uBeg196cJARQ== X-Received: by 2002:a9d:110:0:b0:60b:2a92:6c35 with SMTP id 16-20020a9d0110000000b0060b2a926c35mr329672otu.381.1654105216718; Wed, 01 Jun 2022 10:40:16 -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.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 10:40:16 -0700 (PDT) From: Adhemerval Zanella To: libc-stable@sourceware.org Subject: [COMMITTED 2.35 6/8] inet: Use 64 bit stat for ruserpass (BZ# 29210) Date: Wed, 1 Jun 2022 14:40:04 -0300 Message-Id: <20220601174006.219504-6-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:19 -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 c943938656..5692715ef2 100644 --- a/NEWS +++ b/NEWS @@ -37,6 +37,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.35 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