diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/namei.c b/fs/namei.c index a3431639e166..9575d0039699 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1467,8 +1467,7 @@ last_component: | |||
1467 | nd->last_type = type; | 1467 | nd->last_type = type; |
1468 | return 0; | 1468 | return 0; |
1469 | } | 1469 | } |
1470 | err = walk_component(nd, &next, &this, type, | 1470 | err = walk_component(nd, &next, &this, type, LOOKUP_FOLLOW); |
1471 | lookup_flags & LOOKUP_FOLLOW); | ||
1472 | if (err < 0) | 1471 | if (err < 0) |
1473 | return err; | 1472 | return err; |
1474 | if (err) { | 1473 | if (err) { |
@@ -1476,11 +1475,6 @@ last_component: | |||
1476 | if (err) | 1475 | if (err) |
1477 | return err; | 1476 | return err; |
1478 | } | 1477 | } |
1479 | if (lookup_flags & LOOKUP_DIRECTORY) { | ||
1480 | err = -ENOTDIR; | ||
1481 | if (!nd->inode->i_op->lookup) | ||
1482 | break; | ||
1483 | } | ||
1484 | return 0; | 1478 | return 0; |
1485 | } | 1479 | } |
1486 | terminate_walk(nd); | 1480 | terminate_walk(nd); |