From e41ac95891837e8a818f529cef9376cb190b8507 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 28 Feb 2013 14:24:59 +0100 Subject: Don't treat 0 as default for pam_pwd_expiration warning --- src/confdb/confdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index 31c48bd2..e1888678 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -1038,7 +1038,8 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb, } } - if (val > 0) { + DEBUG(SSSDBG_TRACE_LIBS, ("pwd_expiration_warning is %d\n", val)); + if (val >= 0) { DEBUG(SSSDBG_CONF_SETTINGS, ("Setting domain password expiration warning to %d days\n", val)); /* The value is in days, transform it to seconds */ -- cgit