--- src/winsup/cygwin/syscalls.cc Fri Mar 01 08:13:42 2002 +++ src/winsup/cygwin/syscalls.cc Mon Mar 04 04:59:26 2002 @@ -1720,7 +1720,7 @@ truncate64 (const char *pathname, __off6 set_errno (EBADF); else { - res = ftruncate (fd, length); + res = ftruncate64 (fd, length); close (fd); } syscall_printf ("%d = truncate (%s, %d)", res, pathname, length);