diff options
Diffstat (limited to 'modules/pam_localuser')
-rw-r--r-- | modules/pam_localuser/pam_localuser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_localuser/pam_localuser.c b/modules/pam_localuser/pam_localuser.c index df1c22bf..f99f4421 100644 --- a/modules/pam_localuser/pam_localuser.c +++ b/modules/pam_localuser/pam_localuser.c @@ -86,8 +86,8 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags UNUSED, /* open the file */ fp = fopen(filename, "r"); if(fp == NULL) { - pam_syslog (pamh, LOG_ERR, "error opening \"%s\": %s", - filename, strerror(errno)); + pam_syslog (pamh, LOG_ERR, "error opening \"%s\": %m", + filename); return PAM_SYSTEM_ERR; } |