From: deraadt Date: Mon, 26 Oct 2015 13:12:10 +0000 (+0000) Subject: remove TMPDIR support X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2a3a373b39cbf2207c84337af6add1d0d4b95e85;p=openbsd remove TMPDIR support --- 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);