diff options
-rw-r--r-- | xlators/mount/fuse/src/fuse-helpers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index c2d4d0cc9d8..cb3e081e62e 100644 --- a/xlators/mount/fuse/src/fuse-helpers.c +++ b/xlators/mount/fuse/src/fuse-helpers.c @@ -174,6 +174,11 @@ frame_fill_groups (call_frame_t *frame) "failed", frame->root->uid); return; } + if (result == 0) { + gf_log (this->name, GF_LOG_ERROR, "getpwuid_r(%u): " + "no matching record", frame->root->uid); + return; + } ngroups = gf_getgrouplist (result->pw_name, frame->root->gid, &mygroups); |