* fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in

input range check.
This commit is contained in:
Corinna Vinschen 2008-04-24 12:37:05 +00:00
parent 51bef6a9c6
commit 4e4eba83f8
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-04-24 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in
input range check.
2008-04-24 Corinna Vinschen <corinna@vinschen.de>
* cygwin.din (futimens): Export.

View File

@ -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;