From 8308c170dbf7f1c998ca0cb3b1ce7d21712a9f08 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 3 Feb 2005 09:26:42 +0000 Subject: Fixed a bug that could case a root exploit when the daemon is compiled to do IDENT lookups and is logging to syslog. Bug discovered by CoKi, , thanks a lot! (http://www.nosystem.com.ar/advisories/advisory-11.txt) --- src/ngircd/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ngircd/log.c b/src/ngircd/log.c index 9af2a447..ec284269 100644 --- a/src/ngircd/log.c +++ b/src/ngircd/log.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: log.c,v 1.49 2005/01/20 00:12:23 alex Exp $"; +static char UNUSED id[] = "$Id: log.c,v 1.50 2005/02/03 09:26:42 alex Exp $"; #include "imp.h" #include @@ -272,7 +272,7 @@ va_dcl fflush( stdout ); } #ifdef SYSLOG - else syslog( Level, msg ); + else syslog( Level, "%s", msg ); #endif } /* Log_Resolver */ -- cgit 1.4.1