Cache tzdata when running under capsicum

PR:		217957
Reported by:	tobik@
This commit is contained in:
Baptiste Daroussin 2017-03-20 19:24:16 +00:00
parent 7404367b95
commit 5bbffb0049

View File

@ -440,6 +440,7 @@ diffreg(char *file1, char *file2, int flags, int capsicum)
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");
}