Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix shadow.set_date/shadow.set_expire on F28 #51079
When there are problems with SSSD, warnings are written to stderr but as long as chage succeeds, the command will exit with a zero exit code.
These two functions were returning True only when there is no CLI output, instead of checking the retcode as they should have.
This commit fixes this, allowing F28 (and any other distros which use SSSD) to properly report success/failure when there are SSSD warnings in the output from chage.