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:
jkh 2001-11-22 01:54:33 +00:00
parent 793f2d8a0f
commit d51c426705

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);
}