mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Change || into && (braino in previous commit). Also append \n to the
error message.
This commit is contained in:
parent
8961964d97
commit
2f6ee8eb7e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94574
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user