summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-09-09 21:11:42 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-09-09 21:11:42 +0100
commit087419efdc1032a0e05c73c4273762d10d68c555 (patch)
treee5375f8eb04363d9f22b50dd350d06242d21bd78
parentAdd test for Group::hasMember (diff)
downloadnetfs-087419efdc1032a0e05c73c4273762d10d68c555.tar.bz2
netfs-087419efdc1032a0e05c73c4273762d10d68c555.tar.xz
netfs-087419efdc1032a0e05c73c4273762d10d68c555.zip
Fix group membership loading
-rw-r--r--netfs/lib/entCache.impl.h2
1 files changed, 1 insertions, 1 deletions
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<Group>::fillCache() const noexcept
while (getgrent_r(&grpbuf, buf.data(), buf.size(), &grp) == 0) {
auto g = std::make_shared<Group>(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);
}
}