aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/libc/rexec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/libc/rexec.cc')
-rw-r--r--winsup/cygwin/libc/rexec.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/libc/rexec.cc b/winsup/cygwin/libc/rexec.cc
index 7f25123..7e337f1 100644
--- a/winsup/cygwin/libc/rexec.cc
+++ b/winsup/cygwin/libc/rexec.cc
@@ -215,7 +215,7 @@ next:
break;
case PASSWD:
if ((*aname == 0 || strcmp(*aname, "anonymous")) &&
- fstat64(fileno(cfile), &stb) >= 0 &&
+ fstat(fileno(cfile), &stb) >= 0 &&
(stb.st_mode & 077) != 0) {
warnx("Error: .netrc file is readable by others.");
warnx("Remove password or make file unreadable by others.");
@@ -227,7 +227,7 @@ next:
}
break;
case ACCOUNT:
- if (fstat64(fileno(cfile), &stb) >= 0
+ if (fstat(fileno(cfile), &stb) >= 0
&& (stb.st_mode & 077) != 0) {
warnx("Error: .netrc file is readable by others.");
warnx("Remove account or make file unreadable by others.");