From 2f6ee8eb7e21fff37c348090c628d3b259a19148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 13 Apr 2002 06:14:30 +0000 Subject: [PATCH] Change || into && (braino in previous commit). Also append \n to the error message. --- lib/libpam/libpam/pam_debug_log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libpam/libpam/pam_debug_log.c b/lib/libpam/libpam/pam_debug_log.c index 2dfb1ea1dce8..c354984e44c0 100644 --- a/lib/libpam/libpam/pam_debug_log.c +++ b/lib/libpam/libpam/pam_debug_log.c @@ -47,13 +47,13 @@ _pam_verbose_error(pam_handle_t *pamh, int flags, va_list ap; char *fmtbuf, *modname, *period; - if (!(flags & PAM_SILENT) || !openpam_get_option(pamh, "no_warn")) { + if (!(flags & PAM_SILENT) && !openpam_get_option(pamh, "no_warn")) { modname = basename(file); period = strchr(modname, '.'); if (period == NULL) period = strchr(modname, '\0'); va_start(ap, format); - asprintf(&fmtbuf, "%.*s: %s: %s", period - modname, modname, + asprintf(&fmtbuf, "%.*s: %s: %s\n", period - modname, modname, function, format); pam_verror(pamh, fmtbuf, ap); free(fmtbuf);