Move Linux specific times tests up to guarantee the values are defined.
CID: 1305178 Submitted by: pfg@ MFC after: 1 week
This commit is contained in:
parent
bfba653b0e
commit
8bc21bafba
@ -895,13 +895,14 @@ linux_utimensat(struct thread *td, struct linux_utimensat_args *args)
|
||||
break;
|
||||
}
|
||||
timesp = times;
|
||||
}
|
||||
|
||||
if (times[0].tv_nsec == UTIME_OMIT && times[1].tv_nsec == UTIME_OMIT)
|
||||
if (times[0].tv_nsec == UTIME_OMIT &&
|
||||
times[1].tv_nsec == UTIME_OMIT)
|
||||
/* This breaks POSIX, but is what the Linux kernel does
|
||||
* _on purpose_ (documented in the man page for utimensat(2)),
|
||||
* so we must follow that behaviour. */
|
||||
return (0);
|
||||
}
|
||||
|
||||
if (args->pathname != NULL)
|
||||
LCONVPATHEXIST_AT(td, args->pathname, &path, dfd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user