X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fs%2Fnamei.c;h=1c2105ed20c5ef4fb390878fb5442943ceec29ae;hb=b25c6cee55c720e5e8502aa37104409aacd16ad3;hp=fbbcf0993312eb9c278dc1343ea2db0fe4edf959;hpb=d08c31812e5ce5867ff0fe1da68d6c375984a597;p=linux-2.6-block.git diff --git a/fs/namei.c b/fs/namei.c index fbbcf0993312..1c2105ed20c5 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -879,7 +879,7 @@ static inline int may_follow_link(struct nameidata *nd) return 0; /* Allowed if parent directory not sticky and world-writable. */ - parent = nd->path.dentry->d_inode; + parent = nd->inode; if ((parent->i_mode & (S_ISVTX|S_IWOTH)) != (S_ISVTX|S_IWOTH)) return 0;