Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
1680a3ce
Commit
1680a3ce
authored
Nov 20, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1260 from abbradar/master
Fix test_filter_ipc for cleared supplementary groups
parents
cb5eebd8
32b2d303
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_filter_ipc.cpp
tests/test_filter_ipc.cpp
+2
-2
No files found.
tests/test_filter_ipc.cpp
View file @
1680a3ce
...
...
@@ -122,8 +122,8 @@ int main (void)
// Get the group and supplimental groups of the process owner
gid_t
groups
[
100
];
int
ngroups
=
getgroups
(
100
,
groups
);
assert
(
ngroups
!=
-
1
&&
ngroups
!=
0
);
gid_t
group
=
getgid
(),
supgroup
=
group
s
[
0
],
notgroup
=
groups
[
ngroups
-
1
]
+
1
;
assert
(
ngroups
!=
-
1
);
gid_t
group
=
getgid
(),
supgroup
=
group
,
notgroup
=
group
+
1
;
for
(
int
i
=
0
;
i
<
ngroups
;
i
++
)
{
if
(
supgroup
==
group
&&
group
!=
groups
[
i
])
supgroup
=
groups
[
i
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment