int checkpw_status = checkpw_internal(pw, passwd);
if (checkpw_status != CHECKPW_SUCCESS) {
- syslog(LOG_ERR, "checkpw() returned %d; failed to authenticate user %s (uid %lu).", checkpw_status, pw->pw_name, pw->pw_uid);
+ syslog(LOG_ERR, "checkpw() returned %d; failed to authenticate user %s (uid %u).", checkpw_status, pw->pw_name, pw->pw_uid);
break;
}
{
// try to ensure that the credentials are the same type
assert(mRight == other.mRight);
- if (mRight)
+ if (mRight) {
assert(mName == other.mName);
- else
+ } else {
assert(mUid == other.mUid);
+ }
if (other.mValid && (!mValid || mCreationTime < other.mCreationTime))
{