View | Details | Raw Unified | Return to bug 334559
Collapse All | Expand All

(-)Linux-PAM-0.99.8.1/libpam/pam_audit.c.no-log (-10 / +9 lines)
Lines 42-59 _pam_audit_writelog(pam_handle_t *pamh, Link Here
42
     best to fix it. */
42
     best to fix it. */
43
  errno = -rc;
43
  errno = -rc;
44
44
45
  if (rc < 0 && errno != old_errno)
46
    {
47
      old_errno = errno;
48
      pam_syslog (pamh, LOG_CRIT, "audit_log_acct_message() failed: %m");
49
    }
50
51
  pamh->audit_state |= PAMAUDIT_LOGGED;
45
  pamh->audit_state |= PAMAUDIT_LOGGED;
52
46
53
  if (rc == -EPERM && getuid () != 0)
47
  if (rc < 0) {
54
    return 0;
48
      if (rc == -EPERM && getuid() != 0)
55
  else
49
          return 0;
56
    return rc;
50
      if (errno != old_errno) {
51
          old_errno = errno;
52
          pam_syslog (pamh, LOG_CRIT, "audit_log_acct_message() failed: %m");
53
      }
54
  }
55
  return rc;
57
}
56
}
58
57
59
int
58
int

Return to bug 334559