Choose more paranoid modes for the temporary directory so the user can't

easily browse its contents.

Noted by:	Antoine
This commit is contained in:
Jordan K. Hubbard 2001-11-22 01:54:33 +00:00
parent 10ecab16ce
commit fe7283fc23

View file

@ -107,7 +107,7 @@ make_playpen(char *pen, off_t sz)
cleanup(0);
errx(2, __FUNCTION__ ": can't mktemp '%s'", pen);
}
if (chmod(pen, 0755) == FAIL) {
if (chmod(pen, 0700) == FAIL) {
cleanup(0);
errx(2, __FUNCTION__ ": can't mkdir '%s'", pen);
}