diff options
author | avg <avg@FreeBSD.org> | 2017-06-01 11:48:01 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-06-01 11:48:01 +0000 |
commit | 9b948ff1b37319ab3de48492a5cd211b9b5934ae (patch) | |
tree | f95d2b512b4b48c755983df6bdb4f131b775af7f /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c | |
parent | b74c94af58bf9c125b68449adcafc3dbad9f51fe (diff) | |
download | FreeBSD-src-9b948ff1b37319ab3de48492a5cd211b9b5934ae.zip FreeBSD-src-9b948ff1b37319ab3de48492a5cd211b9b5934ae.tar.gz |
MFC r319096: zfs_lookup: fix bogus arguments to lookup of "snapshot" directory
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c index 2e98e4e..21b29e5 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c @@ -1629,7 +1629,7 @@ zfs_lookup(vnode_t *dvp, char *nm, vnode_t **vpp, struct componentname *cnp, cn.cn_nameptr = "snapshot"; cn.cn_namelen = strlen(cn.cn_nameptr); cn.cn_nameiop = cnp->cn_nameiop; - cn.cn_flags = cnp->cn_flags; + cn.cn_flags = cnp->cn_flags & ~ISDOTDOT; cn.cn_lkflags = cnp->cn_lkflags; error = VOP_LOOKUP(zfsctl_vp, vpp, &cn); vput(zfsctl_vp); |