summaryrefslogtreecommitdiff
path: root/libpam
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2006-01-13 14:55:18 +0000
committerDmitry V. Levin <ldv@altlinux.org>2006-01-13 14:55:18 +0000
commit6afd317c70e56e105e8221ca14b433d2e055cf1f (patch)
tree3ac9cc4650ef1665519ac5917e41d795ea67f858 /libpam
parent15d1bd639b095fe63c164dcb5ba8977e8eecb73b (diff)
Relevant BUGIDs: none
Purpose of commit: cleanup Commit summary: --------------- 2006-01-13 Dmitry V. Levin <ldv@altlinux.org> * libpam/pam_audit.c (_pam_auditlog): Replace strerror(errno) call with %m specifier.
Diffstat (limited to 'libpam')
-rw-r--r--libpam/pam_audit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpam/pam_audit.c b/libpam/pam_audit.c
index 7c067d9b..acf7da8b 100644
--- a/libpam/pam_audit.c
+++ b/libpam/pam_audit.c
@@ -56,8 +56,7 @@ _pam_auditlog(pam_handle_t *pamh, int action, int retval, int flags)
/* this should only fail in case of extreme resource shortage,
* need to prevent login in that case for CAPP compliance.
*/
- pam_syslog(pamh, LOG_CRIT, "audit_open() failed: %s",
- strerror(errno));
+ pam_syslog(pamh, LOG_CRIT, "audit_open() failed: %m");
return PAM_SYSTEM_ERR;
}