From 087419efdc1032a0e05c73c4273762d10d68c555 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 9 Sep 2020 21:11:42 +0100 Subject: Fix group membership loading --- netfs/lib/entCache.impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netfs/lib/entCache.impl.h b/netfs/lib/entCache.impl.h index ad8fb33..6523d32 100644 --- a/netfs/lib/entCache.impl.h +++ b/netfs/lib/entCache.impl.h @@ -84,7 +84,7 @@ EntCache::fillCache() const noexcept while (getgrent_r(&grpbuf, buf.data(), buf.size(), &grp) == 0) { auto g = std::make_shared(grp->gr_gid, grp->gr_name); for (auto member = grp->gr_mem; *member; member++) { - if (auto ent = instance.getEntry((const gid_t &)*member)) { + if (auto ent = instance.getEntry(*member)) { g->members.insert(ent->id); } } -- cgit v1.2.3