Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51ebc50
)
User can touch file with WRITE permission.
author
fanyong
<fanyong>
Tue, 3 Oct 2006 16:33:51 +0000
(16:33 +0000)
committer
fanyong
<fanyong>
Tue, 3 Oct 2006 16:33:51 +0000
(16:33 +0000)
lustre/mdd/mdd_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdd/mdd_handler.c
b/lustre/mdd/mdd_handler.c
index
bc8208b
..
0924b0f
100644
(file)
--- a/
lustre/mdd/mdd_handler.c
+++ b/
lustre/mdd/mdd_handler.c
@@
-1172,9
+1172,9
@@
int mdd_fix_attr(const struct lu_env *env, struct mdd_object *obj,
/* Check for setting the obj time. */
if ((la->la_valid & (LA_MTIME | LA_ATIME | LA_CTIME)) &&
!(la->la_valid & ~(LA_MTIME | LA_ATIME | LA_CTIME))) {
- if ((uc->mu_fsuid != tmp_la->la_uid) &&
-
!mdd_capable(uc, CAP_FOWNER)
)
- RETURN(
-EPERM
);
+ rc = __mdd_permission_internal(env, obj, MAY_WRITE, 0);
+
if (rc
)
+ RETURN(
rc
);
}
/* Make sure a caller can chmod. */