Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/faithd use %s with syslog, to prevent abuse. from:...
details: https://anonhg.NetBSD.org/src/rev/ab4d7b30db69
branches: trunk
changeset: 494000:ab4d7b30db69
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Jun 29 01:24:11 2000 +0000
description:
use %s with syslog, to prevent abuse. from: deraadt (sync with kame)
diffstat:
usr.sbin/faithd/faithd.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 1f30eb167917 -r ab4d7b30db69 usr.sbin/faithd/faithd.c
--- a/usr.sbin/faithd/faithd.c Thu Jun 29 00:22:27 2000 +0000
+++ b/usr.sbin/faithd/faithd.c Thu Jun 29 01:24:11 2000 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: faithd.c,v 1.10 2000/05/31 03:18:02 itojun Exp $ */
-/* $KAME: faithd.c,v 1.18 2000/05/31 03:06:07 itojun Exp $ */
+/* $NetBSD: faithd.c,v 1.11 2000/06/29 01:24:11 itojun Exp $ */
+/* $KAME: faithd.c,v 1.19 2000/06/29 01:17:29 itojun Exp $ */
/*
* Copyright (C) 1997 and 1998 WIDE Project.
@@ -664,7 +664,7 @@
va_start(ap, fmt);
vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
- syslog(LOG_ERR, buf);
+ syslog(LOG_ERR, "%s", buf);
exit(EXIT_FAILURE);
}
@@ -677,7 +677,7 @@
va_start(ap, fmt);
vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO, "%s", buf);
exit(EXIT_SUCCESS);
}
Home |
Main Index |
Thread Index |
Old Index