mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
linux(4): Convert flags before use in utimensat.
Differential Revision: https://reviews.freebsd.org/D30487 MFC after: 2 weeks
This commit is contained in:
parent
a06c12464b
commit
8505eb5dd8
@ -861,6 +861,9 @@ linux_utimensat(struct thread *td, struct linux_utimensat_args *args)
|
||||
return (0);
|
||||
}
|
||||
|
||||
if (args->flags & LINUX_AT_SYMLINK_NOFOLLOW)
|
||||
flags |= AT_SYMLINK_NOFOLLOW;
|
||||
|
||||
if (!LUSECONVPATH(td)) {
|
||||
if (args->pathname != NULL) {
|
||||
return (kern_utimensat(td, dfd, args->pathname,
|
||||
@ -873,9 +876,6 @@ linux_utimensat(struct thread *td, struct linux_utimensat_args *args)
|
||||
else if (args->flags != 0)
|
||||
return (EINVAL);
|
||||
|
||||
if (args->flags & LINUX_AT_SYMLINK_NOFOLLOW)
|
||||
flags |= AT_SYMLINK_NOFOLLOW;
|
||||
|
||||
if (path == NULL)
|
||||
error = kern_futimens(td, dfd, timesp, UIO_SYSSPACE);
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user