diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-01 11:09:21 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-01 11:09:21 +1000 |
commit | b38eff8e4ff901df9cf1113a9f14d64c3565a401 (patch) | |
tree | 9a856898f15f7760ed95c5d47789a6f954b4ad2f /log-server.c | |
parent | 450a7a1ff40fe7c2d84c93b83cf2df53445d807d (diff) |
- Big OpenBSD CVS update (mainly beginnings of SSH2 infrastructure)
- [auth.c session.c sshd.c auth.h]
split sshd.c -> auth.c session.c sshd.c plus cleanup and goto-removal
- [bufaux.c bufaux.h]
support ssh2 bignums
- [channels.c channels.h clientloop.c sshd.c nchan.c nchan.h packet.c]
[readconf.c ssh.c ssh.h serverloop.c]
replace big switch() with function tables (prepare for ssh2)
- [ssh2.h]
ssh2 message type codes
- [sshd.8]
reorder Xr to avoid cutting
- [serverloop.c]
close(fdin) if fdin != fdout, shutdown otherwise, ok theo@
- [channels.c]
missing close
allow bigger packets
- [cipher.c cipher.h]
support ssh2 ciphers
- [compress.c]
cleanup, less code
- [dispatch.c dispatch.h]
function tables for different message types
- [log-server.c]
do not log() if debuggin to stderr
rename a cpp symbol, to avoid param.h collision
- [mpaux.c]
KNF
- [nchan.c]
sync w/ channels.c
Diffstat (limited to 'log-server.c')
-rw-r--r-- | log-server.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/log-server.c b/log-server.c index 7f732ed3b..476e49f80 100644 --- a/log-server.c +++ b/log-server.c | |||
@@ -15,7 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "includes.h" | 17 | #include "includes.h" |
18 | RCSID("$Id: log-server.c,v 1.7 2000/03/09 10:27:50 damien Exp $"); | 18 | RCSID("$Id: log-server.c,v 1.8 2000/04/01 01:09:24 damien Exp $"); |
19 | 19 | ||
20 | #include <syslog.h> | 20 | #include <syslog.h> |
21 | #include "packet.h" | 21 | #include "packet.h" |
@@ -137,9 +137,11 @@ do_log(LogLevel level, const char *fmt, va_list args) | |||
137 | } else { | 137 | } else { |
138 | vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); | 138 | vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); |
139 | } | 139 | } |
140 | if (log_on_stderr) | 140 | if (log_on_stderr) { |
141 | fprintf(stderr, "%s\n", msgbuf); | 141 | fprintf(stderr, "%s\n", msgbuf); |
142 | openlog(__progname, LOG_PID, log_facility); | 142 | } else { |
143 | syslog(pri, "%.500s", msgbuf); | 143 | openlog(__progname, LOG_PID, log_facility); |
144 | closelog(); | 144 | syslog(pri, "%.500s", msgbuf); |
145 | closelog(); | ||
146 | } | ||
145 | } | 147 | } |