Add NO_STDERR flag.

This commit is contained in:
Todd C. Miller
2004-10-26 22:20:18 +00:00
parent 6c5550d13c
commit 899e22194e
2 changed files with 7 additions and 4 deletions

View File

@@ -395,10 +395,12 @@ log_error(va_alist)
/*
* Tell the user.
*/
if (flags & USE_ERRNO)
warn("%s", message);
else
warnx("%s", message);
if (!ISSET(flags, NO_STDERR)) {
if (flags & USE_ERRNO)
warn("%s", message);
else
warnx("%s", message);
}
/*
* Send a copy of the error via mail.