diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2010-03-06 13:41:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-06 13:54:48 -0500 |
commit | 781b16775ba0bb55fac0e1757bf0bd87c8879632 (patch) | |
tree | f081f67fe98a50a217a8c9be8d55e64854e46193 /fs/namei.c | |
parent | 64096c17417380d8a472d096645f4cbc9406c987 (diff) |
Fix a dumb typo - use of & instead of &&
We managed to lose O_DIRECTORY testing due to a stupid typo in commit
1f36f774b2 ("Switch !O_CREAT case to use of do_last()")
Reported-by: Walter Sheets <w41ter@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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 3d9d2f965f84..48e60a187325 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1656,7 +1656,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path, | |||
1656 | if (path->dentry->d_inode->i_op->follow_link) | 1656 | if (path->dentry->d_inode->i_op->follow_link) |
1657 | return NULL; | 1657 | return NULL; |
1658 | error = -ENOTDIR; | 1658 | error = -ENOTDIR; |
1659 | if (*want_dir & !path->dentry->d_inode->i_op->lookup) | 1659 | if (*want_dir && !path->dentry->d_inode->i_op->lookup) |
1660 | goto exit_dput; | 1660 | goto exit_dput; |
1661 | path_to_nameidata(path, nd); | 1661 | path_to_nameidata(path, nd); |
1662 | audit_inode(pathname, nd->path.dentry); | 1662 | audit_inode(pathname, nd->path.dentry); |