From 2a3a373b39cbf2207c84337af6add1d0d4b95e85 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 26 Oct 2015 13:12:10 +0000 Subject: [PATCH] remove TMPDIR support --- usr.bin/sendbug/sendbug.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c index c5c8a00b50f..dc39073328e 100644 --- a/usr.bin/sendbug/sendbug.c +++ b/usr.bin/sendbug/sendbug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sendbug.c,v 1.72 2015/10/11 21:23:15 deraadt Exp $ */ +/* $OpenBSD: sendbug.c,v 1.73 2015/10/26 13:12:10 deraadt Exp $ */ /* * Written by Ray Lai . @@ -55,7 +55,7 @@ const char *comment[] = { struct passwd *pw; char os[BUFSIZ], rel[BUFSIZ], mach[BUFSIZ], details[BUFSIZ]; -const char *tmpdir; +const char *tmpdir = _PATH_TMP; char *tmppath; int Dflag, Pflag, wantcleanup; @@ -108,9 +108,6 @@ main(int argc, char *argv[]) if (argc > 0) usage(); - if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0') - tmpdir = _PATH_TMP; - if (Pflag) { init(); template(stdout); -- 2.20.1