diff options
Diffstat (limited to 'libglusterfs/src/stack.h')
-rw-r--r-- | libglusterfs/src/stack.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libglusterfs/src/stack.h b/libglusterfs/src/stack.h index cad7f79be..cc059f068 100644 --- a/libglusterfs/src/stack.h +++ b/libglusterfs/src/stack.h @@ -104,6 +104,15 @@ struct _call_stack_t { }; +#define frame_set_uid_gid(frm, u, g) \ + do { \ + if (frm) { \ + (frm)->root->uid = u; \ + (frm)->root->gid = g; \ + (frm)->root->ngrps = 0; \ + } \ + } while (0); \ + static inline void FRAME_DESTROY (call_frame_t *frame) { |