* fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in
input range check.
This commit is contained in:
parent
51bef6a9c6
commit
4e4eba83f8
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue