2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 00:26:39 +08:00

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>
This commit is contained in:
Al Viro 2010-03-06 18:41:07 +00:00 committed by Linus Torvalds
parent 64096c1741
commit 781b16775b

View File

@ -1656,7 +1656,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
if (path->dentry->d_inode->i_op->follow_link) if (path->dentry->d_inode->i_op->follow_link)
return NULL; return NULL;
error = -ENOTDIR; error = -ENOTDIR;
if (*want_dir & !path->dentry->d_inode->i_op->lookup) if (*want_dir && !path->dentry->d_inode->i_op->lookup)
goto exit_dput; goto exit_dput;
path_to_nameidata(path, nd); path_to_nameidata(path, nd);
audit_inode(pathname, nd->path.dentry); audit_inode(pathname, nd->path.dentry);