Skip to content

Commit ad8f159

Browse files
committed
spawn/UidGid: rename groups to supplementary_groups
1 parent 9c7ca40 commit ad8f159

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Hook.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ WorkshopSpawnHook::Verify(const PreparedChildProcess &p)
4545
throw FmtRuntimeError("Wrong gid {}, expected {} for plan {}",
4646
p.uid_gid.gid, plan->gid, plan_name);
4747

48-
if (!CompareGroups(plan->groups, p.uid_gid.groups))
48+
if (!CompareGroups(plan->groups, p.uid_gid.supplementary_groups))
4949
throw FmtRuntimeError("Supplementary group mismatch for plan {}",
5050
plan_name);
5151

src/workshop/Workplace.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ WorkshopWorkplace::Start(EventLoop &event_loop, const WorkshopJob &job,
133133
p.uid_gid.gid = plan->gid;
134134

135135
std::copy(plan->groups.begin(), plan->groups.end(),
136-
p.uid_gid.groups.begin());
136+
p.uid_gid.supplementary_groups.begin());
137137
}
138138

139139
if (!plan->chroot.empty())

0 commit comments

Comments
 (0)