Restore AT_RESOLVE_BENEATH support for funlinkat(2)/unlinkat(2).
MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
6ed39db257
commit
ead7697f04
@ -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)
|
int flag, enum uio_seg pathseg, ino_t oldinum)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ((flag & ~AT_REMOVEDIR) != 0)
|
if ((flag & ~(AT_REMOVEDIR | AT_RESOLVE_BENEATH)) != 0)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
if ((flag & AT_REMOVEDIR) != 0)
|
if ((flag & AT_REMOVEDIR) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user