mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
p9fs: Properly handle paths containing "."
Fixes: 56e4622588ed ("p9fs: fix lookup of "." for lib9p-based 9P servers")
Pull Request: https://github.com/freebsd/freebsd-src/pull/1361
This commit is contained in:
parent
26c1080d17
commit
ee2ca2b0f6
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ p9fs_lookup(struct vop_lookup_args *ap)
|
|||
if (dnp == NULL)
|
||||
return (ENOENT);
|
||||
|
||||
if (cnp->cn_nameptr[0] == '.' && strlen(cnp->cn_nameptr) == 1) {
|
||||
if (cnp->cn_nameptr[0] == '.' && cnp->cn_namelen == 1) {
|
||||
vref(dvp);
|
||||
*vpp = dvp;
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue