URL:
https://github.com/SSSD/sssd/pull/366
Title: #366: SUDO: Use initgr_with_views when looking up a sudo user
lslebodn commented:
"""
CI probably failed due to following error which I can see on my machine:
```
CC src/sss_client/libwbclient/test_wbc_calls-wbclient_common.o
src/tests/cmocka/test_sysdb_sudo.c: In function ‘test_get_sudo_user_info’:
src/tests/cmocka/test_sysdb_sudo.c:460:54: error: passing argument 5 of
‘sysdb_get_sudo_user_info’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
users[1].name, 0, &groupnames);
^
In file included from src/tests/cmocka/test_sysdb_sudo.c:29:0:
src/db/sysdb_sudo.h:121:1: note: expected ‘uid_t * {aka unsigned int *}’ but argument is
of type ‘char ***’
sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx,
^~~~~~~~~~~~~~~~~~~~~~~~
src/tests/cmocka/test_sysdb_sudo.c:459:11: error: too few arguments to function
‘sysdb_get_sudo_user_info’
ret = sysdb_get_sudo_user_info(test_ctx, test_ctx->tctx->dom,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/tests/cmocka/test_sysdb_sudo.c:29:0:
src/db/sysdb_sudo.h:121:1: note: declared here
sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx,
^~~~~~~~~~~~~~~~~~~~~~~~
src/tests/cmocka/test_sysdb_sudo.c: In function ‘test_get_sudo_user_info_nogroup’:
src/tests/cmocka/test_sysdb_sudo.c:476:54: error: passing argument 5 of
‘sysdb_get_sudo_user_info’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
users[0].name, 0, &groupnames);
^
In file included from src/tests/cmocka/test_sysdb_sudo.c:29:0:
src/db/sysdb_sudo.h:121:1: note: expected ‘uid_t * {aka unsigned int *}’ but argument is
of type ‘char ***’
sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx,
^~~~~~~~~~~~~~~~~~~~~~~~
src/tests/cmocka/test_sysdb_sudo.c:475:11: error: too few arguments to function
‘sysdb_get_sudo_user_info’
ret = sysdb_get_sudo_user_info(test_ctx, test_ctx->tctx->dom,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/tests/cmocka/test_sysdb_sudo.c:29:0:
src/db/sysdb_sudo.h:121:1: note: declared here
sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx,
^~~~~~~~~~~~~~~~~~~~~~~~
src/tests/cmocka/test_sysdb_sudo.c: In function ‘test_get_sudo_nouser’:
src/tests/cmocka/test_sysdb_sudo.c:491:60: error: passing argument 5 of
‘sysdb_get_sudo_user_info’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
TEST_USER_NON_EXIST, 0, &groupnames);
^
In file included from src/tests/cmocka/test_sysdb_sudo.c:29:0:
src/db/sysdb_sudo.h:121:1: note: expected ‘uid_t * {aka unsigned int *}’ but argument is
of type ‘char ***’
sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx,
^~~~~~~~~~~~~~~~~~~~~~~~
src/tests/cmocka/test_sysdb_sudo.c:490:11: error: too few arguments to function
‘sysdb_get_sudo_user_info’
ret = sysdb_get_sudo_user_info(test_ctx, test_ctx->tctx->dom,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/tests/cmocka/test_sysdb_sudo.c:29:0:
src/db/sysdb_sudo.h:121:1: note: declared here
sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx,
^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/366#issuecomment-327406528