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
d81f3ec2
Commit
d81f3ec2
authored
Mar 16, 2019
by
Andreas Hasenack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: test_filter_with_supplemental_process_owner_gid fails
Solution: only set supgroup to a valid gid
parent
645df4e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
test_filter_ipc.cpp
tests/test_filter_ipc.cpp
+4
-2
testutil.hpp
tests/testutil.hpp
+2
-0
No files found.
tests/test_filter_ipc.cpp
View file @
d81f3ec2
...
...
@@ -122,8 +122,10 @@ void init_groups ()
supgroup
=
group
;
notgroup
=
group
+
1
;
for
(
int
i
=
0
;
i
<
ngroups
;
i
++
)
{
if
(
supgroup
==
group
&&
group
!=
groups
[
i
])
supgroup
=
groups
[
i
];
if
(
supgroup
==
group
&&
group
!=
groups
[
i
])
{
if
(
getgrgid
(
groups
[
i
]))
supgroup
=
groups
[
i
];
}
if
(
notgroup
<=
groups
[
i
])
notgroup
=
groups
[
i
]
+
1
;
}
...
...
tests/testutil.hpp
View file @
d81f3ec2
...
...
@@ -78,8 +78,10 @@
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>
#include <grp.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
...
...
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