summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_sudo_shared.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2016-01-12 11:45:22 +0100
committerJakub Hrozek <jhrozek@redhat.com>2016-01-19 14:33:53 +0100
commit8da71a9d5eebe7690b66fde8bfad195d5e3cc629 (patch)
tree52c2f18a8e581f420ef8cf0b7605422091d27ae1 /src/providers/ldap/sdap_sudo_shared.c
parent8bd44a13de231d025882810c720dd07ca4ee564d (diff)
downloadsssd-8da71a9d5eebe7690b66fde8bfad195d5e3cc629.tar.gz
sssd-8da71a9d5eebe7690b66fde8bfad195d5e3cc629.tar.xz
sssd-8da71a9d5eebe7690b66fde8bfad195d5e3cc629.zip
SUDO: allow disabling full refresh
This condition always disabled smart refresh when full refresh interval was set to zero and thus disabling periodic refresh functionality completelely. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/providers/ldap/sdap_sudo_shared.c')
-rw-r--r--src/providers/ldap/sdap_sudo_shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_sudo_shared.c b/src/providers/ldap/sdap_sudo_shared.c
index 0885054e..9e9574b7 100644
--- a/src/providers/ldap/sdap_sudo_shared.c
+++ b/src/providers/ldap/sdap_sudo_shared.c
@@ -55,7 +55,7 @@ sdap_sudo_ptask_setup_generic(struct be_ctx *be_ctx,
DEBUG(SSSDBG_CONF_SETTINGS, "At least smart refresh needs to be "
"enabled. Setting smart refresh interval to default value "
"(%ld) seconds.\n", smart);
- } else if (full <= smart) {
+ } else if (full > 0 && full <= smart) {
/* In this case it does not make any sense to run smart refresh. */
smart = 0;