diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-04 18:41:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-04 18:41:47 +0000 |
commit | 4cb76026747c1c4f9db0090c18888232ece673b0 (patch) | |
tree | 602a27b829dddac7decfb4066bdb458d30c95786 /usr.bin | |
parent | 18423be53229bf49c861cdd4941144cdb72d7585 (diff) |
when mktemp() is hard to fix, use 10 X
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/m4/pathnames.h | 4 | ||||
-rw-r--r-- | usr.bin/oldrdist/main.c | 6 | ||||
-rw-r--r-- | usr.bin/tn3270/sys_curses/system.c | 6 | ||||
-rw-r--r-- | usr.bin/xlint/xlint/xlint.c | 12 | ||||
-rw-r--r-- | usr.bin/yacc/main.c | 6 |
5 files changed, 17 insertions, 17 deletions
diff --git a/usr.bin/m4/pathnames.h b/usr.bin/m4/pathnames.h index dd5bc976f30..dc7f0d3dff5 100644 --- a/usr.bin/m4/pathnames.h +++ b/usr.bin/m4/pathnames.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pathnames.h,v 1.3 1996/08/22 00:35:02 deraadt Exp $ */ +/* $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 $ */ /* @@ -50,7 +50,7 @@ #endif #if defined(unix) || defined(__NetBSD__) || defined(__OpenBSD__) -#define _PATH_DIVNAME "/tmp/m4.0XXXXXX" /* unix diversion files */ +#define _PATH_DIVNAME "/tmp/m4.0XXXXXXXXXX" /* unix diversion files */ #define UNIQUE 8 /* unique char location */ #endif diff --git a/usr.bin/oldrdist/main.c b/usr.bin/oldrdist/main.c index d063103e98a..a4cd0a3f80f 100644 --- a/usr.bin/oldrdist/main.c +++ b/usr.bin/oldrdist/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.6 1996/09/16 16:38:28 millert Exp $ */ +/* $OpenBSD: main.c,v 1.7 1997/04/04 18:41:31 deraadt Exp $ */ /* * Copyright (c) 1983, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/9/93"; */ -static char *rcsid = "$OpenBSD: main.c,v 1.6 1996/09/16 16:38:28 millert Exp $"; +static char *rcsid = "$OpenBSD: main.c,v 1.7 1997/04/04 18:41:31 deraadt Exp $"; #endif /* not lint */ #include "defs.h" @@ -53,7 +53,7 @@ static char *rcsid = "$OpenBSD: main.c,v 1.6 1996/09/16 16:38:28 millert Exp $"; */ char *distfile = NULL; -#define _RDIST_TMP "rdistXXXXXX" +#define _RDIST_TMP "rdistXXXXXXXXXX" char tempfile[sizeof _PATH_TMP + sizeof _RDIST_TMP + 1]; char *tempname; diff --git a/usr.bin/tn3270/sys_curses/system.c b/usr.bin/tn3270/sys_curses/system.c index 3137c43aefd..46668849160 100644 --- a/usr.bin/tn3270/sys_curses/system.c +++ b/usr.bin/tn3270/sys_curses/system.c @@ -1,4 +1,4 @@ -/* $OpenBSD: system.c,v 1.3 1996/12/06 02:09:04 deraadt Exp $ */ +/* $OpenBSD: system.c,v 1.4 1997/04/04 18:41:33 deraadt Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)system.c 4.5 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$OpenBSD: system.c,v 1.3 1996/12/06 02:09:04 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: system.c,v 1.4 1997/04/04 18:41:33 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -643,7 +643,7 @@ char *argv[]; /* First, create verification file. */ do { - keyname = mktemp(strdup("/tmp/apiXXXXXX")); + keyname = mktemp(strdup("/tmp/apiXXXXXXXXXX")); fd = open(keyname, O_RDWR|O_CREAT|O_EXCL, IREAD|IWRITE); } while ((fd == -1) && (errno == EEXIST)); diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c index 17c3f465b8d..3e826726c27 100644 --- a/usr.bin/xlint/xlint/xlint.c +++ b/usr.bin/xlint/xlint/xlint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xlint.c,v 1.4 1996/11/13 17:43:48 michaels Exp $ */ +/* $OpenBSD: xlint.c,v 1.5 1997/04/04 18:41:36 deraadt Exp $ */ /* $NetBSD: xlint.c,v 1.3 1995/10/23 14:29:30 jpo Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: xlint.c,v 1.4 1996/11/13 17:43:48 michaels Exp $"; +static char rcsid[] = "$OpenBSD: xlint.c,v 1.5 1997/04/04 18:41:36 deraadt Exp $"; #endif #include <sys/param.h> @@ -303,8 +303,8 @@ main(argc, argv) tmpdir = s; } - cppout = xmalloc(strlen(tmpdir) + sizeof ("lint0.XXXXXX")); - (void)sprintf(cppout, "%slint0.XXXXXX", tmpdir); + cppout = xmalloc(strlen(tmpdir) + sizeof ("lint0.XXXXXXXXXX")); + (void)sprintf(cppout, "%slint0.XXXXXXXXXX", tmpdir); if (mktemp(cppout) == NULL) { warn("can't make temp"); terminate(-1); @@ -556,8 +556,8 @@ fname(name, last) (void)sprintf(ofn, "%.*s", (int)len, bn); (void)strcat(ofn, ".ln"); } else { - ofn = xmalloc(strlen(tmpdir) + sizeof ("lint1.XXXXXX")); - (void)sprintf(ofn, "%slint1.XXXXXX", tmpdir); + ofn = xmalloc(strlen(tmpdir) + sizeof ("lint1.XXXXXXXXXX")); + (void)sprintf(ofn, "%slint1.XXXXXXXXXX", tmpdir); if (mktemp(ofn) == NULL) { warn("can't make temp"); terminate(-1); diff --git a/usr.bin/yacc/main.c b/usr.bin/yacc/main.c index 406fad58a66..3ced574d390 100644 --- a/usr.bin/yacc/main.c +++ b/usr.bin/yacc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.6 1997/01/14 04:47:08 tholo Exp $ */ +/* $OpenBSD: main.c,v 1.7 1997/04/04 18:41:38 deraadt Exp $ */ /* $NetBSD: main.c,v 1.5 1996/03/19 03:21:38 jtc Exp $ */ /* @@ -47,7 +47,7 @@ char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 5.5 (Berkeley) 5/24/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.6 1997/01/14 04:47:08 tholo Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.7 1997/04/04 18:41:38 deraadt Exp $"; #endif #endif /* not lint */ @@ -66,7 +66,7 @@ char vflag; char *symbol_prefix; char *file_prefix = "y"; char *myname = "yacc"; -char *temp_form = "yacc.XXXXXXX"; +char *temp_form = "yacc.XXXXXXXXXX"; int lineno; int outline; |