diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-04-24 16:37:05 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-04-24 16:37:05 +0400 |
commit | 4e4eba83f88016a48abd9b355dcf0363136c93f1 (patch) | |
tree | 98a880d4bdb17d54e502807722a68616fdf2ea4d /winsup/cygwin | |
parent | 51bef6a9c6fb80b8a452a1414adbdf9f3aef7f61 (diff) |
* fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in
input range check.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index bee003c5b..fab93138c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 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. (utimensat): Export. * fhandler.cc (fhandler_base::utimens): Replace fhandler_base::utimes. 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; |