From b1a5ae99ffb16c8ec8cf2d541fd95b2181c27102 Mon Sep 17 00:00:00 2001 From: tedu Date: Wed, 27 Jul 2016 20:53:47 +0000 Subject: [PATCH] it should not be necessary for yacc to use TMPDIR, /tmp is good enough. ok beck deraadt guenther --- usr.bin/yacc/main.c | 5 ++--- usr.bin/yacc/yacc.1 | 13 +++---------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/usr.bin/yacc/main.c b/usr.bin/yacc/main.c index 29df0cfd886..7ca222d2b57 100644 --- a/usr.bin/yacc/main.c +++ b/usr.bin/yacc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.27 2015/10/10 14:23:47 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.28 2016/07/27 20:53:47 tedu Exp $ */ /* $NetBSD: main.c,v 1.5 1996/03/19 03:21:38 jtc Exp $ */ /* @@ -234,8 +234,7 @@ create_file_names(void) size_t len; char *tmpdir; - if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0') - tmpdir = _PATH_TMP; + tmpdir = _PATH_TMP; len = strlen(tmpdir); if (tmpdir[len - 1] == '/') diff --git a/usr.bin/yacc/yacc.1 b/usr.bin/yacc/yacc.1 index dfb8e6606b6..8756b841e27 100644 --- a/usr.bin/yacc/yacc.1 +++ b/usr.bin/yacc/yacc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: yacc.1,v 1.31 2015/09/09 21:23:31 schwarze Exp $ +.\" $OpenBSD: yacc.1,v 1.32 2016/07/27 20:53:47 tedu Exp $ .\" .\" Copyright (c) 1989, 1990 The Regents of the University of California. .\" All rights reserved. @@ -32,7 +32,7 @@ .\" .\" from: @(#)yacc.1 5.7 (Berkeley) 7/30/91 .\" -.Dd $Mdocdate: September 9 2015 $ +.Dd $Mdocdate: July 27 2016 $ .Dt YACC 1 .Os .Sh NAME @@ -130,11 +130,6 @@ option causes a human-readable description of the generated parser to be written to the file .Pa y.output . .El -.Sh ENVIRONMENT -.Bl -tag -width TMPDIR -.It Ev TMPDIR -Name of directory where temporary files are to be created. -.El .Sh TABLES The names of the tables generated by this version of .Nm @@ -195,9 +190,7 @@ specification, though its presence is optional. .Pp The flags -.Op Fl or , -as well as the environment variable -.Ev TMPDIR , +.Op Fl or are extensions to that specification. .Sh HISTORY .Nm -- 2.20.1