* fhandler_disk_file.cc (fhandler_base::utimens_fs): Fix typo in
input range check.
This commit is contained in:
		| @@ -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> | 2008-04-24  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* cygwin.din (futimens): Export. | 	* cygwin.din (futimens): Export. | ||||||
|   | |||||||
| @@ -1187,8 +1187,8 @@ fhandler_base::utimens_fs (const struct timespec *tvp) | |||||||
|     tmp[1] = tmp[0] = timeofday; |     tmp[1] = tmp[0] = timeofday; | ||||||
|   else |   else | ||||||
|     { |     { | ||||||
|       if ((tmp[0].tv_nsec < UTIME_NOW || tmp[0].tv_nsec > 999999999L) |       if ((tvp[0].tv_nsec < UTIME_NOW || tvp[0].tv_nsec > 999999999L) | ||||||
| 	  || (tmp[1].tv_nsec < UTIME_NOW || tmp[1].tv_nsec > 999999999L)) | 	  || (tvp[1].tv_nsec < UTIME_NOW || tvp[1].tv_nsec > 999999999L)) | ||||||
| 	{ | 	{ | ||||||
| 	  set_errno (EINVAL); | 	  set_errno (EINVAL); | ||||||
| 	  return -1; | 	  return -1; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user