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");
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to