The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ead7697f04c036853535a4281cec9aa09ef21270

commit ead7697f04c036853535a4281cec9aa09ef21270
Author:     Konstantin Belousov <k...@freebsd.org>
AuthorDate: 2021-03-05 02:07:57 +0000
Commit:     Konstantin Belousov <k...@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)
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to