Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -1,7 +1,7 @@
$NetBSD: patch-ar,v 1.2 2011/09/25 19:41:11 joerg Exp $
$NetBSD: patch-ar,v 1.3 2013/09/10 14:15:11 joerg Exp $
--- common/errwarn.c.orig 1996-09-10 00:12:34.000000000 +0000
+++ common/errwarn.c 2007-10-10 16:48:18.000000000 +0000
+++ common/errwarn.c
@@ -46,6 +46,8 @@ static char copyright[] =
#include "global.h"
#include <syslog.h>
@@ -11,3 +11,39 @@ $NetBSD: patch-ar,v 1.2 2011/09/25 19:41:11 joerg Exp $
static void do_percentm PROTO ((char *obuf, char *ibuf));
@@ -65,7 +67,7 @@ int error (ANSI_DECL(char *) fmt, VA_DOT
VA_start (list, fmt);
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
- syslog (LOG_ERR, mbuf);
+ syslog (LOG_ERR, "%s", mbuf);
cleanup ();
exit (1);
@@ -86,7 +88,7 @@ int warn (ANSI_DECL (char *) fmt, VA_DOT
VA_start (list, fmt);
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
- syslog (LOG_ERR, mbuf);
+ syslog (LOG_ERR, "%s", mbuf);
return 0;
}
@@ -105,7 +107,7 @@ int info (ANSI_DECL (char *) fmt, VA_DOT
VA_start (list, fmt);
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
- syslog (LOG_INFO, mbuf);
+ syslog (LOG_INFO, "%s", mbuf);
return 0;
}
@@ -124,7 +126,7 @@ int debug (ANSI_DECL (char *) fmt, VA_DO
VA_start (list, fmt);
vsnprintf (mbuf, sizeof mbuf, fbuf, list);
va_end (list);
- syslog (LOG_DEBUG, mbuf);
+ syslog (LOG_DEBUG, "%s", mbuf);
return 0;
}