diff options
author | kris <kris@FreeBSD.org> | 2000-11-22 11:09:30 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-11-22 11:09:30 +0000 |
commit | a542b562c74d3b96180b69ca474155cee243bd16 (patch) | |
tree | d6bf42a5e13da339af0aaac72e3ebd6eab15a7da /usr.bin/m4/pathnames.h | |
parent | f99b720bd3ef9ce7f798710a7ba92f3f896d47d5 (diff) | |
download | FreeBSD-src-a542b562c74d3b96180b69ca474155cee243bd16.zip FreeBSD-src-a542b562c74d3b96180b69ca474155cee243bd16.tar.gz |
Create temporary files in a secure directory, instead of using multiple
filenames based on a single invocation of mktemp() in /tmp, which is
easily predictable after the first one.
Audited by: markm
Diffstat (limited to 'usr.bin/m4/pathnames.h')
-rw-r--r-- | usr.bin/m4/pathnames.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/m4/pathnames.h b/usr.bin/m4/pathnames.h index dc7f0d3..3983cf6 100644 --- a/usr.bin/m4/pathnames.h +++ b/usr.bin/m4/pathnames.h @@ -1,6 +1,3 @@ -/* $OpenBSD: pathnames.h,v 1.4 1997/04/04 18:41:29 deraadt Exp $ */ -/* $NetBSD: pathnames.h,v 1.6 1995/09/29 00:27:55 cgd Exp $ */ - /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -37,6 +34,7 @@ * SUCH DAMAGE. * * @(#)pathnames.h 8.1 (Berkeley) 6/6/93 + * $FreeBSD$ */ /* @@ -49,9 +47,10 @@ #define UNIQUE 3 /* unique char location */ #endif -#if defined(unix) || defined(__NetBSD__) || defined(__OpenBSD__) -#define _PATH_DIVNAME "/tmp/m4.0XXXXXXXXXX" /* unix diversion files */ -#define UNIQUE 8 /* unique char location */ +#ifdef unix +#define _PATH_DIVDIRNAME "/tmp/m4XXXXXX" /* directory for files */ +#define _PATH_DIVNAME "m4.0" /* unix diversion files */ +#define UNIQUE 17 /* unique char location */ #endif #ifdef vms |