mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
linux(4): Handle AT_EMPTY_PATH in the utimensat syscall.
Differential Revision: https://reviews.freebsd.org/D30518 MFC after: 2 weeks
This commit is contained in:
parent
5236888db7
commit
b4f9b6eef2
@ -813,7 +813,7 @@ linux_utimensat(struct thread *td, struct linux_utimensat_args *args)
|
||||
|
||||
dfd = (args->dfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dfd;
|
||||
|
||||
if (args->flags & ~LINUX_AT_SYMLINK_NOFOLLOW)
|
||||
if (args->flags & ~(LINUX_AT_SYMLINK_NOFOLLOW | LINUX_AT_EMPTY_PATH))
|
||||
return (EINVAL);
|
||||
|
||||
if (args->times != NULL) {
|
||||
@ -863,6 +863,8 @@ linux_utimensat(struct thread *td, struct linux_utimensat_args *args)
|
||||
|
||||
if (args->flags & LINUX_AT_SYMLINK_NOFOLLOW)
|
||||
flags |= AT_SYMLINK_NOFOLLOW;
|
||||
if (args->flags & LINUX_AT_EMPTY_PATH)
|
||||
flags |= AT_EMPTY_PATH;
|
||||
|
||||
if (!LUSECONVPATH(td)) {
|
||||
if (args->pathname != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user