Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2017 19:24:16 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315649 - head/usr.bin/diff
Message-ID:  <201703201924.v2KJOGQL080813@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Mar 20 19:24:16 2017
New Revision: 315649
URL: https://svnweb.freebsd.org/changeset/base/315649

Log:
  Cache tzdata when running under capsicum
  
  PR:		217957
  Reported by:	tobik@

Modified:
  head/usr.bin/diff/diffreg.c

Modified: head/usr.bin/diff/diffreg.c
==============================================================================
--- head/usr.bin/diff/diffreg.c	Mon Mar 20 19:16:28 2017	(r315648)
+++ head/usr.bin/diff/diffreg.c	Mon Mar 20 19:24:16 2017	(r315649)
@@ -440,6 +440,7 @@ diffreg(char *file1, char *file2, int fl
 				err(2, "unable to limit stdio");
 
 		caph_cache_catpages();
+		caph_cache_tzdata();
 		if (cap_enter() < 0 && errno != ENOSYS)
 			err(2, "unable to enter capability mode");
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703201924.v2KJOGQL080813>