076f82
commit aa8a87f51d7a1fb86ff75d3e3870316b6bc70dfe
076f82
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
076f82
Date:   Tue May 31 11:51:46 2022 -0300
076f82
076f82
    misc: Use 64 bit stat for getusershell (BZ# 29204)
076f82
    
076f82
    This is a missing spot initially from 52a5fe70a2c77935.
076f82
    
076f82
    Checked on i686-linux-gnu.
076f82
    
076f82
    (cherry picked from commit ec995fb2152f160f02bf695ff83c45df4a6cd868)
076f82
076f82
diff --git a/misc/getusershell.c b/misc/getusershell.c
076f82
index 11f5aa83f888a114..4221095dca743dfa 100644
076f82
--- a/misc/getusershell.c
076f82
+++ b/misc/getusershell.c
076f82
@@ -97,7 +97,7 @@ initshells (void)
076f82
 {
076f82
 	char **sp, *cp;
076f82
 	FILE *fp;
076f82
-	struct stat64 statb;
076f82
+	struct __stat64_t64 statb;
076f82
 	size_t flen;
076f82
 
076f82
 	free(shells);
076f82
@@ -106,7 +106,7 @@ initshells (void)
076f82
 	strings = NULL;
076f82
 	if ((fp = fopen(_PATH_SHELLS, "rce")) == NULL)
076f82
 		goto init_okshells_noclose;
076f82
-	if (__fstat64(fileno(fp), &statb) == -1) {
076f82
+	if (__fstat64_time64(fileno(fp), &statb) == -1) {
076f82
 	init_okshells:
076f82
 		(void)fclose(fp);
076f82
 	init_okshells_noclose: