diff options
Diffstat (limited to 'usr.bin/su')
-rw-r--r-- | usr.bin/su/su.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index aa50d19..9191b87 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -230,8 +230,12 @@ main(int argc, char *argv[]) retcode = pam_authenticate(pamh, 0); if (retcode != PAM_SUCCESS) { +#if 0 syslog(LOG_ERR, "pam_authenticate: %s", pam_strerror(pamh, retcode)); +#endif + syslog(LOG_AUTH|LOG_WARNING, "BAD SU %s to %s on %s", + username, user, mytty); errx(1, "Sorry"); } retcode = pam_get_item(pamh, PAM_USER, (const void **)&p); |