8eda442b2e
Resolves: rhbz#1488327 - SELinux is preventing selinux_child from write access on the sock_file system_bus_socket Resolves: rhbz#1490402 - SSSD does not create /var/lib/sss/deskprofile and fails to download desktop profile data Resolves: upstream#3485 - getsidbyid does not work with 1.15.3 Resolves: upstream#3488 - SUDO doesn't work for IPA users on IPA clients after applying ID Views for them in IPA server Resolves: upstream#3501 - Accessing IdM kerberos ticket fails while id mapping is applied
49 lines
1.9 KiB
Diff
49 lines
1.9 KiB
Diff
From 280f69cf2ef63b47e2c7d4b745de36970a79a518 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Hrozek <jhrozek@redhat.com>
|
|
Date: Thu, 7 Sep 2017 11:01:21 +0200
|
|
Subject: [PATCH 114/115] TESTS: Use NULL for pointer, not 0
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
|
|
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
|
|
---
|
|
src/tests/cmocka/test_sysdb_sudo.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/tests/cmocka/test_sysdb_sudo.c b/src/tests/cmocka/test_sysdb_sudo.c
|
|
index 34afe120d97e99e3213a85bf7489a5e0f6309e4b..5cd348259fc8ccef888772a497feb7b674b3fa0a 100644
|
|
--- a/src/tests/cmocka/test_sysdb_sudo.c
|
|
+++ b/src/tests/cmocka/test_sysdb_sudo.c
|
|
@@ -457,7 +457,7 @@ void test_get_sudo_user_info(void **state)
|
|
|
|
/* User 1 has group. */
|
|
ret = sysdb_get_sudo_user_info(test_ctx, test_ctx->tctx->dom,
|
|
- users[1].name, 0, &groupnames);
|
|
+ users[1].name, NULL, &groupnames);
|
|
assert_int_equal(ret, EOK);
|
|
assert_string_equal(groupnames[0], TEST_GROUP_NAME);
|
|
|
|
@@ -473,7 +473,7 @@ void test_get_sudo_user_info_nogroup(void **state)
|
|
|
|
/* User 0 hasn't group. */
|
|
ret = sysdb_get_sudo_user_info(test_ctx, test_ctx->tctx->dom,
|
|
- users[0].name, 0, &groupnames);
|
|
+ users[0].name, NULL, &groupnames);
|
|
assert_int_equal(ret, EOK);
|
|
assert_null(groupnames);
|
|
|
|
@@ -488,7 +488,7 @@ void test_get_sudo_nouser(void **state)
|
|
struct sysdb_test_ctx);
|
|
|
|
ret = sysdb_get_sudo_user_info(test_ctx, test_ctx->tctx->dom,
|
|
- TEST_USER_NON_EXIST, 0, &groupnames);
|
|
+ TEST_USER_NON_EXIST, NULL, &groupnames);
|
|
assert_int_equal(ret, ENOENT);
|
|
}
|
|
|
|
--
|
|
2.14.1
|
|
|