]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Orangefs: don't expose internal details of pathname resolution to userspace.
authorMike Marshall <hubcap@omnibond.com>
Fri, 4 Dec 2015 18:06:55 +0000 (13:06 -0500)
committerMike Marshall <hubcap@omnibond.com>
Fri, 4 Dec 2015 18:06:55 +0000 (13:06 -0500)
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/namei.c

index 63aa1e7fbdb6ffa5fd1f991b3254324ea143092e..9f82eb37785746f5f0e2b9c653678291b0bf53b0 100644 (file)
@@ -113,7 +113,7 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry,
        if (!new_op)
                return ERR_PTR(-ENOMEM);
 
-       new_op->upcall.req.lookup.sym_follow = flags & LOOKUP_FOLLOW;
+       new_op->upcall.req.lookup.sym_follow = PVFS2_LOOKUP_LINK_NO_FOLLOW;
 
        gossip_debug(GOSSIP_NAME_DEBUG, "%s:%s:%d using parent %pU\n",
                     __FILE__,