aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-01-21 19:30:19 +0000
committerMark Johnston <markj@FreeBSD.org>2021-01-21 19:30:19 +0000
commit1a05d9519de62cc0f7719a995fded0926d8b2747 (patch)
treed907ae5d36e7f130e42ef3311f608dd56b14d43d /lib
parent48a186863431ec7a23c6174bc376cafa59dd5fbf (diff)
Diffstat (limited to 'lib')
-rw-r--r--lib/libcasper/services/cap_grp/tests/grp_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libcasper/services/cap_grp/tests/grp_test.c b/lib/libcasper/services/cap_grp/tests/grp_test.c
index e2bb5e22eb1a..1e84e293e214 100644
--- a/lib/libcasper/services/cap_grp/tests/grp_test.c
+++ b/lib/libcasper/services/cap_grp/tests/grp_test.c
@@ -321,6 +321,8 @@ test_cmds(cap_channel_t *origcapgrp)
capgrp = cap_clone(origcapgrp);
CHECK(capgrp != NULL);
+ cap_setgrent(capgrp);
+
cmds[0] = "getgrent";
cmds[1] = "getgrent_r";
cmds[2] = "getgrnam";
@@ -361,6 +363,8 @@ test_cmds(cap_channel_t *origcapgrp)
capgrp = cap_clone(origcapgrp);
CHECK(capgrp != NULL);
+ cap_setgrent(capgrp);
+
cmds[0] = "getgrent";
cmds[1] = "getgrent_r";
cmds[2] = "getgrnam";