Whamcloud - gitweb
Branch b1_8_gate
authorvitaly <vitaly>
Mon, 15 Sep 2008 18:30:52 +0000 (18:30 +0000)
committervitaly <vitaly>
Mon, 15 Sep 2008 18:30:52 +0000 (18:30 +0000)
b=15949
i=adilger
i=shadow

lustre/mdc/mdc_request.c

index 5b2aaf0..83b4f7e 100644 (file)
@@ -313,7 +313,7 @@ int mdc_xattr_common(struct obd_export *exp, struct ll_fid *fid,
                 rec->sx_opcode = REINT_SETXATTR;
                 rec->sx_fsuid  = current->fsuid;
                 rec->sx_fsgid  = current->fsgid;
-                rec->sx_cap    = current->cap_effective;
+                rec->sx_cap    = cfs_curproc_cap_pack();
                 rec->sx_suppgid1 = -1;
                 rec->sx_suppgid2 = -1;
                 rec->sx_fid    = *((struct lu_fid*)fid);