git: ead7697f04c0 - main - Restore AT_RESOLVE_BENEATH support for funlinkat(2)/unlinkat(2).
Konstantin Belousov
kib at FreeBSD.org
Sat Mar 6 05:25:19 UTC 2021
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=ead7697f04c036853535a4281cec9aa09ef21270
commit ead7697f04c036853535a4281cec9aa09ef21270
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-03-05 02:07:57 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-03-06 05:24:18 +0000
Restore AT_RESOLVE_BENEATH support for funlinkat(2)/unlinkat(2).
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
---
sys/kern/vfs_syscalls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index fec9566cb415..3db34c3689de 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1809,7 +1809,7 @@ kern_funlinkat_ex(struct thread *td, int dfd, const char *path, int fd,
int flag, enum uio_seg pathseg, ino_t oldinum)
{
- if ((flag & ~AT_REMOVEDIR) != 0)
+ if ((flag & ~(AT_REMOVEDIR | AT_RESOLVE_BENEATH)) != 0)
return (EINVAL);
if ((flag & AT_REMOVEDIR) != 0)
More information about the dev-commits-src-all
mailing list