diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-10-09 05:12:05 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-10-09 19:31:37 +0000 |
commit | 5fb54d2fc845464ea809e6a1a69380693943cf51 (patch) | |
tree | 11f7bab68530f885d6877df8d2bafc5a8f6a481f /sys | |
parent | fa9da1f590caba94b98717c33633efcf719da151 (diff) | |
download | src-5fb54d2fc845464ea809e6a1a69380693943cf51.tar.gz src-5fb54d2fc845464ea809e6a1a69380693943cf51.zip |
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index bd496db50e99..1b355eea7d6a 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -2640,8 +2640,8 @@ kern_readlinkat(struct thread *td, int fd, const char *path, if (count > IOSIZE_MAX) return (EINVAL); - NDINIT_AT(&nd, LOOKUP, NOFOLLOW | LOCKSHARED | LOCKLEAF | AUDITVNODE1, - pathseg, path, fd, td); + NDINIT_AT(&nd, LOOKUP, NOFOLLOW | LOCKSHARED | LOCKLEAF | AUDITVNODE1 | + EMPTYPATH, pathseg, path, fd, td); if ((error = namei(&nd)) != 0) return (error); |