aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/futimens.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/futimens.c')
-rw-r--r--lib/libc/sys/futimens.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/sys/futimens.c b/lib/libc/sys/futimens.c
index 2014cc5cecf3..59fb37f5249a 100644
--- a/lib/libc/sys/futimens.c
+++ b/lib/libc/sys/futimens.c
@@ -42,8 +42,11 @@ futimens(int fd, const struct timespec times[2])
{
struct timeval now, tv[2], *tvp;
struct stat sb;
+ int osreldate;
- if (__getosreldate() >= 1100056)
+ osreldate = __getosreldate();
+ if (osreldate >= 1100056 ||
+ (osreldate >= 1002506 && osreldate < 1100000))
return (__sys_futimens(fd, times));
if (times == NULL || (times[0].tv_nsec == UTIME_NOW &&