diff options
author | 2016-07-15 05:01:58 +0000 | |
---|---|---|
committer | 2016-07-15 05:01:58 +0000 | |
commit | d51a1029dda4c055e9406c395d53b54074ae40ef (patch) | |
tree | 2a1a487bed5b77c5fcdf552e81acd381255472a0 /usr.bin/ssh/log.c | |
parent | Don't update cells in each block of data read from a pane immediately, (diff) | |
download | wireguard-openbsd-d51a1029dda4c055e9406c395d53b54074ae40ef.tar.xz wireguard-openbsd-d51a1029dda4c055e9406c395d53b54074ae40ef.zip |
Reduce the syslog level of some relatively common protocol events
from LOG_CRIT by replacing fatal() calls with logdie(). Part of
bz#2585, ok djm@
Diffstat (limited to 'usr.bin/ssh/log.c')
-rw-r--r-- | usr.bin/ssh/log.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/ssh/log.c b/usr.bin/ssh/log.c index 8039896371f..6228989b44b 100644 --- a/usr.bin/ssh/log.c +++ b/usr.bin/ssh/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.47 2016/04/29 08:07:53 djm Exp $ */ +/* $OpenBSD: log.c,v 1.48 2016/07/15 05:01:58 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -164,6 +164,16 @@ sigdie(const char *fmt,...) _exit(1); } +void +logdie(const char *fmt,...) +{ + va_list args; + + va_start(args, fmt); + do_log(SYSLOG_LEVEL_INFO, fmt, args); + va_end(args); + cleanup_exit(255); +} /* Log this message (information that usually should go to the log). */ |