projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64096c1
)
Fix a dumb typo - use of & instead of &&
author
Al Viro
<
[email protected]
>
Sat, 6 Mar 2010 18:41:07 +0000
(18:41 +0000)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Mar 2010 18:54:48 +0000
(10:54 -0800)
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 <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/namei.c
patch
|
blob
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index 3d9d2f965f848d871cabb23c46dc0fa44a26cc25..48e60a187325e00abb01b2c1278d0cb5441bc6d5 100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-1656,7
+1656,7
@@
static struct file *do_last(struct nameidata *nd, struct path *path,
if (path->dentry->d_inode->i_op->follow_link)
return NULL;
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;
path_to_nameidata(path, nd);
audit_inode(pathname, nd->path.dentry);