diff options
Diffstat (limited to 'lib/utimens.c')
-rw-r--r-- | lib/utimens.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utimens.c b/lib/utimens.c index e65f55d82fe..f6c4fe34c7c 100644 --- a/lib/utimens.c +++ b/lib/utimens.c @@ -91,11 +91,11 @@ validate_timespec (struct timespec timespec[2]) if ((timespec[0].tv_nsec != UTIME_NOW && timespec[0].tv_nsec != UTIME_OMIT && ! (0 <= timespec[0].tv_nsec - && timespec[0].tv_nsec < TIMESPEC_RESOLUTION)) + && timespec[0].tv_nsec < TIMESPEC_HZ)) || (timespec[1].tv_nsec != UTIME_NOW && timespec[1].tv_nsec != UTIME_OMIT && ! (0 <= timespec[1].tv_nsec - && timespec[1].tv_nsec < TIMESPEC_RESOLUTION))) + && timespec[1].tv_nsec < TIMESPEC_HZ))) { errno = EINVAL; return -1; |