1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Don't chmod 0755 the directory we just mkdtemp()'d. mkdtemp() uses

mode 0700 which is better.  From Yozo TODA based on a FreeBSD advisory.
This commit is contained in:
millert 2002-02-18 00:18:07 +00:00
parent 2de856385d
commit 2f80013f50

View File

@ -1,7 +1,7 @@
/* $OpenBSD: pen.c,v 1.10 2001/11/26 05:04:33 deraadt Exp $ */
/* $OpenBSD: pen.c,v 1.11 2002/02/18 00:18:07 millert Exp $ */
#ifndef lint
static const char *rcsid = "$OpenBSD: pen.c,v 1.10 2001/11/26 05:04:33 deraadt Exp $";
static const char *rcsid = "$OpenBSD: pen.c,v 1.11 2002/02/18 00:18:07 millert Exp $";
#endif
/*
@ -107,10 +107,6 @@ make_playpen(char *pen, size_t pensize, size_t sz)
cleanup(0);
errx(2, "can't mkdtemp '%s'", pen);
}
if (chmod(pen, 0755) == FAIL) {
cleanup(0);
errx(2, "can't chmod '%s'", pen);
}
if (Verbose) {
if (sz)
fprintf(stderr, "Requested space: %lu bytes, free space: %qd bytes in %s\n", (u_long)sz, (long long)min_free(pen), pen);