Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f063d2c authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Don't attempt an atomic open if the file is a mountpoint

parent 3d7b0894
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1050,7 +1050,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd)
	struct inode *dir;
	int openflags, ret = 0;

	if (!is_atomic_open(nd))
	if (!is_atomic_open(nd) || d_mountpoint(dentry))
		goto no_open;
	parent = dget_parent(dentry);
	dir = parent->d_inode;