Browse Source

Fix a silly bug with using fstat64 instead of just fstat. No
reason for 64bit stuff just to check perms.
-Erik

Eric Andersen 22 years ago
parent
commit
841716d6a5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/inet/rpc/ruserpass.c

+ 2 - 2
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.");