git: 62694ac4a4db - stable/13 - Restore AT_RESOLVE_BENEATH support for funlinkat(2)/unlinkat(2).
Konstantin Belousov
kib at FreeBSD.org
Sat Mar 13 03:16:20 UTC 2021
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=62694ac4a4db60275e04e3ccf4973436086551a7
commit 62694ac4a4db60275e04e3ccf4973436086551a7
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-13 02:52:01 +0000
Restore AT_RESOLVE_BENEATH support for funlinkat(2)/unlinkat(2).
(cherry picked from commit ead7697f04c036853535a4281cec9aa09ef21270)
---
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 52604d3da829..40dd8c069bfb 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1811,7 +1811,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