Restore AT_RESOLVE_BENEATH support for funlinkat(2)/unlinkat(2).

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2021-03-05 04:07:57 +02:00
parent 6ed39db257
commit ead7697f04

View File

@ -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)