From d51c426705b561f9ce3bf8d9ea54a802fb9c3ec4 Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 22 Nov 2001 01:54:33 +0000 Subject: [PATCH] Choose more paranoid modes for the temporary directory so the user can't easily browse its contents. Noted by: Antoine --- usr.sbin/pkg_install/lib/pen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c index 1714bd8cd7d1..eae54eae07ac 100644 --- a/usr.sbin/pkg_install/lib/pen.c +++ b/usr.sbin/pkg_install/lib/pen.c @@ -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); }