summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-08 08:00:43 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-08 08:00:43 +0000
commit841716d6a528e0a4c3c5fb0ea43ab687bcdb5b16 (patch)
tree4ef0f631ef89c663fde866da349f3395f95f630d /libc/inet/rpc
parent34117d1d2cdb7dc1fd5f38e95078045cd76d6141 (diff)
Fix a silly bug with using fstat64 instead of just fstat. No
reason for 64bit stuff just to check perms. -Erik
Diffstat (limited to 'libc/inet/rpc')
-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 0f0a4e1fc..f6c83accf 100644
--- a/libc/inet/rpc/ruserpass.c
+++ b/libc/inet/rpc/ruserpass.c
@@ -179,7 +179,7 @@ next:
break;
case PASSWD:
if (strcmp(*aname, "anonymous") &&
- fstat64(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."));
@@ -198,7 +198,7 @@ next:
break;
case ACCOUNT:
#if 0
- if (fstat64(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.");