diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
879 | return 0; | 879 | return 0; |
880 | 880 | ||
881 | /* Allowed if parent directory not sticky and world-writable. */ | 881 | /* Allowed if parent directory not sticky and world-writable. */ |
882 | parent = nd->path.dentry->d_inode; | 882 | parent = nd->inode; |
883 | if ((parent->i_mode & (S_ISVTX|S_IWOTH)) != (S_ISVTX|S_IWOTH)) | 883 | if ((parent->i_mode & (S_ISVTX|S_IWOTH)) != (S_ISVTX|S_IWOTH)) |
884 | return 0; | 884 | return 0; |
885 | 885 | ||