[nas] [PATCH] -Wformat-security fix
Erik Auerswald
auerswal at unix-ag.uni-kl.de
Sun Jan 22 10:45:02 MST 2012
Hi,
On 01/22/2012 04:21 PM, Steve McIntyre wrote:
> --- 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...
Looks good to me.
Erik
More information about the nas
mailing list