From 4e4eba83f88016a48abd9b355dcf0363136c93f1 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 24 Apr 2008 12:37:05 +0000 Subject: * fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in input range check. --- winsup/cygwin/fhandler_disk_file.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/fhandler_disk_file.cc') diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index dabee7beb..7895ae8f5 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1187,8 +1187,8 @@ fhandler_base::utimens_fs (const struct timespec *tvp) tmp[1] = tmp[0] = timeofday; else { - if ((tmp[0].tv_nsec < UTIME_NOW || tmp[0].tv_nsec > 999999999L) - || (tmp[1].tv_nsec < UTIME_NOW || tmp[1].tv_nsec > 999999999L)) + if ((tvp[0].tv_nsec < UTIME_NOW || tvp[0].tv_nsec > 999999999L) + || (tvp[1].tv_nsec < UTIME_NOW || tvp[1].tv_nsec > 999999999L)) { set_errno (EINVAL); return -1; -- cgit v1.2.3