Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-190 opencreate without mode can crash llite
[fs/lustre-release.git]
/
lustre
/
llite
/
namei.c
diff --git
a/lustre/llite/namei.c
b/lustre/llite/namei.c
index
1f39a7a
..
f9f9bc7
100644
(file)
--- a/
lustre/llite/namei.c
+++ b/
lustre/llite/namei.c
@@
-610,7
+610,7
@@
struct lookup_intent *ll_convert_intent(struct open_intent *oit,
it->it_op = IT_OPEN;
if (lookup_flags & LOOKUP_CREATE)
it->it_op |= IT_CREAT;
- it->it_create_mode =
oit->create_mode
;
+ it->it_create_mode =
(oit->create_mode & S_IALLUGO) | S_IFREG
;
it->it_flags = oit->flags;
} else {
it->it_op = IT_GETATTR;