aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWes Peters <wes@FreeBSD.org>2001-12-07 20:57:19 +0000
committerWes Peters <wes@FreeBSD.org>2001-12-07 20:57:19 +0000
commit8bf779b28dcbc93f7e41b9dcd6cb8d7e0a0549a0 (patch)
tree837385d05ba493fbb30065afe80f1611dc70ef35
parent00649b24a6486f03663d272a1b47f64dcb3552a9 (diff)
downloadsrc-8bf779b28dcbc93f7e41b9dcd6cb8d7e0a0549a0.tar.gz
src-8bf779b28dcbc93f7e41b9dcd6cb8d7e0a0549a0.zip
MFC directory permission fix.
Approved by: security-officer
Notes
Notes: svn path=/releng/4.3/; revision=87511
-rw-r--r--usr.sbin/pkg_install/lib/pen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c
index 687d6bb49db6..62f1e32b5053 100644
--- a/usr.sbin/pkg_install/lib/pen.c
+++ b/usr.sbin/pkg_install/lib/pen.c
@@ -106,7 +106,7 @@ make_playpen(char *pen, size_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);
}