summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>1998-07-28 01:18:02 +0000
committerJacques Vidrine <nectar@FreeBSD.org>1998-07-28 01:18:02 +0000
commitdd123c1609b709c793ff762e929e9bfe026c88b8 (patch)
tree71b1aec3b919c1540f8b6ff684f1c9251dd9694c
parent722ab3dd955c9a08984cda593ad755f32de69a6d (diff)
Notes
-rw-r--r--usr.sbin/pkg_install/lib/pen.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c
index 07cb30451508..d914833064cb 100644
--- a/usr.sbin/pkg_install/lib/pen.c
+++ b/usr.sbin/pkg_install/lib/pen.c
@@ -1,6 +1,6 @@
#ifndef lint
static const char rcsid[] =
- "$Id: pen.c,v 1.27 1998/02/16 17:16:51 jkh Exp $";
+ "$Id: pen.c,v 1.28 1998/04/12 16:01:10 jkh Exp $";
#endif
/*
@@ -102,12 +102,11 @@ make_playpen(char *pen, size_t sz)
if (!find_play_pen(pen, sz))
return NULL;
- if (!mktemp(pen)) {
+ if (!mkdtemp(pen)) {
cleanup(0);
errx(2, "can't mktemp '%s'", pen);
}
-
- if (mkdir(pen, 0755) == FAIL) {
+ if (chmod(pen, 0755) == FAIL) {
cleanup(0);
errx(2, "can't mkdir '%s'", pen);
}