diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-01-22 14:31:37 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-22 19:46:30 +0100 |
commit | e54cde6e089080e919bf990ba1fee885b227000c (patch) | |
tree | d547ed76c1421f40e0eaf02627e515284727ac22 /src/db/sysdb_sudo.h | |
parent | e0a3fbf8ba571c90a765135a04cf51a98ceaf407 (diff) | |
download | sssd-e54cde6e089080e919bf990ba1fee885b227000c.tar.gz sssd-e54cde6e089080e919bf990ba1fee885b227000c.tar.xz sssd-e54cde6e089080e919bf990ba1fee885b227000c.zip |
sudo responder: change num_rules type from size_t to uint32_t
https://fedorahosted.org/sssd/ticket/1779
2^32 should be enough to store sudo rules. size_t type was causing
troubles on big endian architectures, because it wasn't used
correctly in combination with D-Bus.
Resolved Conflicts:
src/responder/sudo/sudosrv_get_sudorules.c
Diffstat (limited to 'src/db/sysdb_sudo.h')
-rw-r--r-- | src/db/sysdb_sudo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h index 35b350c63..de34cb373 100644 --- a/src/db/sysdb_sudo.h +++ b/src/db/sysdb_sudo.h @@ -62,10 +62,10 @@ | SYSDB_SUDO_FILTER_NGRS errno_t sysdb_sudo_filter_rules_by_time(TALLOC_CTX *mem_ctx, - size_t in_num_rules, + uint32_t in_num_rules, struct sysdb_attrs **in_rules, time_t now, - size_t *_num_rules, + uint32_t *_num_rules, struct sysdb_attrs ***_rules); errno_t |