Skip to content

Commit e87ee2f

Browse files
committed
[test][sanitizer] Switch test to a different group
1 parent 9c6c4d6 commit e87ee2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88

99
int main(void) {
1010
gid_t *groups;
11-
group *nobody;
11+
group *root;
1212
int ngroups;
1313

1414
ngroups = sysconf(_SC_NGROUPS_MAX);
1515
groups = (gid_t *)malloc(ngroups * sizeof(gid_t));
1616
if (!groups)
1717
exit(1);
1818

19-
if (!(nobody = getgrnam("nobody")))
19+
if (!(root = getgrnam("root")))
2020
exit(2);
2121

22-
if (getgrouplist("nobody", nobody->gr_gid, groups, &ngroups) == -1)
22+
if (getgrouplist("root", root->gr_gid, groups, &ngroups) == -1)
2323
exit(3);
2424

2525
if (groups && ngroups) {

0 commit comments

Comments
 (0)