summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mount/fuse/src/fuse-helpers.c')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c
index 7fc41383c36..a28169a0021 100644
--- a/xlators/mount/fuse/src/fuse-helpers.c
+++ b/xlators/mount/fuse/src/fuse-helpers.c
@@ -259,16 +259,16 @@ static void get_groups(fuse_private_t *priv, call_frame_t *frame)
const gid_list_t *gl;
gid_list_t agl;
+ if (!priv || !priv->gid_cache_timeout) {
+ frame_fill_groups(frame);
+ return;
+ }
+
if (-1 == priv->gid_cache_timeout) {
frame->root->ngrps = 0;
return;
}
- if (!priv->gid_cache_timeout) {
- frame_fill_groups(frame);
- return;
- }
-
gl = gid_cache_lookup(&priv->gid_cache, frame->root->pid,
frame->root->uid, frame->root->gid);
if (gl) {
@@ -326,7 +326,7 @@ get_call_frame_for_req (fuse_state_t *state)
state->lk_owner);
}
- get_groups(priv, frame);
+ get_groups(priv, frame);
if (priv && priv->client_pid_set)
frame->root->pid = priv->client_pid;