summaryrefslogtreecommitdiff
path: root/libc/unistd/usershell.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-13 11:35:31 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-13 11:35:31 +0000
commit3c84ded68a9106ac87886e173e75dd3dde33c231 (patch)
treedcc90d017e2c77b98d3753d470adfa576d36149c /libc/unistd/usershell.c
parent4d668e00b8c42aca5662f1d65496a97a507f583f (diff)
Convert internal users of chmod/*stat*, minimize change for __strsep
Diffstat (limited to 'libc/unistd/usershell.c')
-rw-r--r--libc/unistd/usershell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c
index 2e1f75d38..143dc2630 100644
--- a/libc/unistd/usershell.c
+++ b/libc/unistd/usershell.c
@@ -103,7 +103,7 @@ static char ** initshells(void)
if ((fp = fopen(_PATH_SHELLS, "r")) == NULL)
return (char **) validsh;
- if (fstat(fileno(fp), &statb) == -1) {
+ if (__fstat(fileno(fp), &statb) == -1) {
goto cleanup;
}
if ((strings = malloc((unsigned)statb.st_size + 1)) == NULL) {