08c3a6
commit 34422108f4e0b8fc0d950b8c00b87193a7884ee5
08c3a6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
08c3a6
Date:   Tue May 31 12:34:48 2022 -0300
08c3a6
08c3a6
    inet: Use 64 bit stat for ruserpass (BZ# 29210)
08c3a6
    
08c3a6
    This is a missing spot initially from 52a5fe70a2c77935.
08c3a6
    
08c3a6
    Checked on i686-linux-gnu.
08c3a6
    
08c3a6
    (cherry picked from commit 3cd4785ea02cc3878bf21996cf9b61b3a306447e)
08c3a6
08c3a6
diff --git a/inet/ruserpass.c b/inet/ruserpass.c
08c3a6
index d61a72877d20b7e5..75e2a065524aa1d5 100644
08c3a6
--- a/inet/ruserpass.c
08c3a6
+++ b/inet/ruserpass.c
08c3a6
@@ -95,7 +95,7 @@ ruserpass (const char *host, const char **aname, const char **apass)
08c3a6
 	char *hdir, *buf, *tmp;
08c3a6
 	char myname[1024], *mydomain;
08c3a6
 	int t, usedefault = 0;
08c3a6
-	struct stat64 stb;
08c3a6
+	struct __stat64_t64 stb;
08c3a6
 
08c3a6
 	hdir = __libc_secure_getenv("HOME");
08c3a6
 	if (hdir == NULL) {
08c3a6
@@ -174,7 +174,7 @@ next:
08c3a6
 			break;
08c3a6
 		case PASSWD:
08c3a6
 			if (strcmp(*aname, "anonymous") &&
08c3a6
-			    __fstat64(fileno(cfile), &stb) >= 0 &&
08c3a6
+			    __fstat64_time64(fileno(cfile), &stb) >= 0 &&
08c3a6
 			    (stb.st_mode & 077) != 0) {
08c3a6
 	warnx(_("Error: .netrc file is readable by others."));
08c3a6
 	warnx(_("Remove 'password' line or make file unreadable by others."));