Skip to content

Commit

Permalink
vfs: don't BUG_ON() if following a /proc fd pseudo-symlink results in…
Browse files Browse the repository at this point in the history
… a symlink

It's "normal" - it can happen if the file descriptor you followed was
opened with O_NOFOLLOW.

Reported-by: Dave Jones <[email protected]>
Cc: Al Viro <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
torvalds committed Mar 8, 2013
1 parent 47b3bc9 commit 7b54c16
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,6 @@ void nd_jump_link(struct nameidata *nd, struct path *path)
nd->path = *path;
nd->inode = nd->path.dentry->d_inode;
nd->flags |= LOOKUP_JUMPED;

BUG_ON(nd->inode->i_op->follow_link);
}

static inline void put_link(struct nameidata *nd, struct path *link, void *cookie)
Expand Down

0 comments on commit 7b54c16

Please sign in to comment.