summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/ruserpass.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/inet/rpc/ruserpass.c
parent4d668e00b8c42aca5662f1d65496a97a507f583f (diff)
Convert internal users of chmod/*stat*, minimize change for __strsep
Diffstat (limited to 'libc/inet/rpc/ruserpass.c')
-rw-r--r--libc/inet/rpc/ruserpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/rpc/ruserpass.c b/libc/inet/rpc/ruserpass.c
index b7bc36864..43291808d 100644
--- a/libc/inet/rpc/ruserpass.c
+++ b/libc/inet/rpc/ruserpass.c
@@ -182,7 +182,7 @@ next:
break;
case PASSWD:
if (__strcmp(*aname, "anonymous") &&
- fstat(fileno(cfile), &stb) >= 0 &&
+ __fstat(fileno(cfile), &stb) >= 0 &&
(stb.st_mode & 077) != 0) {
__printf(_("Error: .netrc file is readable by others."));
__printf(_("Remove password or make file unreadable by others."));
@@ -201,7 +201,7 @@ next:
break;
case ACCOUNT:
#if 0
- if (fstat(fileno(cfile), &stb) >= 0
+ if (__fstat(fileno(cfile), &stb) >= 0
&& (stb.st_mode & 077) != 0) {
__printf("Error: .netrc file is readable by others.");
__printf("Remove account or make file unreadable by others.");