Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185921
b: refs/heads/master
c: c99658f
h: refs/heads/master
i:
  185919: 4d33d18
v: v3
  • Loading branch information
Al Viro committed Mar 5, 2010
1 parent 872adc6 commit 31fe39a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1e28038df98e186807ff55a49c1c26d33d530a5
refs/heads/master: c99658fe970f442199733bcace1a00b087336a0d
7 changes: 1 addition & 6 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,7 @@ struct file *do_filp_open(int dfd, const char *pathname,

do_link:
error = -ELOOP;
if (flag & O_NOFOLLOW)
if ((flag & O_NOFOLLOW) || count++ == 32)
goto exit_dput;
/*
* This is subtle. Instead of calling do_follow_link() we do the
Expand Down Expand Up @@ -1915,11 +1915,6 @@ struct file *do_filp_open(int dfd, const char *pathname,
__putname(nd.last.name);
goto exit;
}
error = -ELOOP;
if (count++==32) {
__putname(nd.last.name);
goto exit;
}
filp = do_last(&nd, &path, open_flag, flag, acc_mode, mode,
pathname, &is_link);
__putname(nd.last.name);
Expand Down

0 comments on commit 31fe39a

Please sign in to comment.