svn commit: r314949 - head/contrib/traceroute
Mariusz Zaborski
oshogbo at FreeBSD.org
Thu Mar 9 06:41:02 UTC 2017
Author: oshogbo
Date: Thu Mar 9 06:41:00 2017
New Revision: 314949
URL: https://svnweb.freebsd.org/changeset/base/314949
Log:
Cache NLS data for strerror(3).
Modified:
head/contrib/traceroute/traceroute.c
Modified: head/contrib/traceroute/traceroute.c
==============================================================================
--- head/contrib/traceroute/traceroute.c Thu Mar 9 06:01:24 2017 (r314948)
+++ head/contrib/traceroute/traceroute.c Thu Mar 9 06:41:00 2017 (r314949)
@@ -238,6 +238,7 @@ static const char rcsid[] =
#endif /* IPSEC */
#include <ctype.h>
+#include <capsicum_helpers.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
@@ -1014,6 +1015,8 @@ main(int argc, char **argv)
cansandbox = false;
#endif
+ caph_cache_catpages();
+
/*
* Here we enter capability mode. Further down access to global
* namespaces (e.g filesystem) is restricted (see capsicum(4)).
More information about the svn-src-head
mailing list