summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authoranton <>2022-11-10 12:38:57 +0000
committeranton <>2022-11-10 12:38:57 +0000
commit0f38a0d993f58d34d252f9431d8222ebdbe4e6f2 (patch)
treee5fa8354bfa75370ae46b7f20bd465375adcf410 /src/regress/lib
parent27cfbee98d1ded4c10ba4f51d87f6bf6cf802cc8 (diff)
downloadopenbsd-0f38a0d993f58d34d252f9431d8222ebdbe4e6f2.tar.gz
openbsd-0f38a0d993f58d34d252f9431d8222ebdbe4e6f2.tar.bz2
openbsd-0f38a0d993f58d34d252f9431d8222ebdbe4e6f2.zip
Use /tmp as opposed of /var/tmp as the default directory for temporary
files.
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libc/db/dbtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libc/db/dbtest.c b/src/regress/lib/libc/db/dbtest.c
index a3375511b0..fd1d2e8077 100644
--- a/src/regress/lib/libc/db/dbtest.c
+++ b/src/regress/lib/libc/db/dbtest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dbtest.c,v 1.19 2021/12/13 16:56:48 deraadt Exp $ */ 1/* $OpenBSD: dbtest.c,v 1.20 2022/11/10 12:38:57 anton Exp $ */
2/* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ 2/* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */
3 3
4/*- 4/*-
@@ -140,7 +140,7 @@ main(int argc, char *argv[])
140 if (fname == NULL) { 140 if (fname == NULL) {
141 p = getenv("TMPDIR"); 141 p = getenv("TMPDIR");
142 if (p == NULL) 142 if (p == NULL)
143 p = "/var/tmp"; 143 p = "/tmp";
144 (void)snprintf(buf, sizeof buf, "%s/__dbtest", p); 144 (void)snprintf(buf, sizeof buf, "%s/__dbtest", p);
145 fname = buf; 145 fname = buf;
146 (void)unlink(buf); 146 (void)unlink(buf);