From 841716d6a528e0a4c3c5fb0ea43ab687bcdb5b16 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 8 Aug 2002 08:00:43 +0000 Subject: Fix a silly bug with using fstat64 instead of just fstat. No reason for 64bit stuff just to check perms. -Erik --- libc/inet/rpc/ruserpass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/inet/rpc') 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."); -- cgit v1.2.3