aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWes Peters <wes@FreeBSD.org>2001-12-07 20:58:46 +0000
committerWes Peters <wes@FreeBSD.org>2001-12-07 20:58:46 +0000
commit137f46730499be20b5b9f461f4068eecec174e22 (patch)
treef33091ac42e180119eef0415745bb117da706323
parentdb2fa549af5ed42009b8df4d6d6bc9793bfa5f44 (diff)
downloadsrc-137f46730499be20b5b9f461f4068eecec174e22.tar.gz
src-137f46730499be20b5b9f461f4068eecec174e22.zip
MFC directory permission fix.
Approved by: security-officer
Notes
Notes: svn path=/releng/4.4/; revision=87513
-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 62465bf3f902..58770ac47532 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);
}