diff options
Diffstat (limited to 'misc/getusershell.c')
-rw-r--r-- | misc/getusershell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/getusershell.c b/misc/getusershell.c index 5fe1ab3eff..9e22125133 100644 --- a/misc/getusershell.c +++ b/misc/getusershell.c @@ -91,7 +91,7 @@ initshells() { register char **sp, *cp; register FILE *fp; - struct stat statb; + struct stat64 statb; int flen; if (shells != NULL) @@ -102,7 +102,7 @@ initshells() strings = NULL; if ((fp = fopen(_PATH_SHELLS, "r")) == NULL) return (okshells); - if (fstat(fileno(fp), &statb) == -1) { + if (fstat64(fileno(fp), &statb) == -1) { (void)fclose(fp); return (okshells); } |