[nas] [PATCH] -Wformat-security fix

Steve McIntyre steve at einval.com
Sun Jan 22 08:21:41 MST 2012


--- nas-1.9.3.orig/server/os/aulog.c
+++ nas-1.9.3/server/os/aulog.c
@@ -37,7 +37,7 @@
 
     if (NasConfig.DoDaemon) {   /* daemons use syslog */
         openlog("nas", LOG_PID, LOG_DAEMON);
-        syslog(LOG_DEBUG, buf);
+        syslog(LOG_DEBUG, "%s", buf);
         closelog();
     } else {
         errfd = stderr;


Found as I've added hardening stuff to the Debian build. If there's no
objections I'll just commit it...

-- 
Steve McIntyre, Cambridge, UK.                                steve at einval.com
Is there anybody out there?



More information about the nas mailing list