Use /tmp as opposed of /var/tmp as the default directory for temporary
authoranton <anton@openbsd.org>
Thu, 10 Nov 2022 12:38:57 +0000 (12:38 +0000)
committeranton <anton@openbsd.org>
Thu, 10 Nov 2022 12:38:57 +0000 (12:38 +0000)
files.

regress/lib/libc/db/dbtest.c

index a337551..fd1d2e8 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: dbtest.c,v 1.19 2021/12/13 16:56:48 deraadt Exp $     */
+/*     $OpenBSD: dbtest.c,v 1.20 2022/11/10 12:38:57 anton Exp $       */
 /*     $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $   */
 
 /*-
@@ -140,7 +140,7 @@ main(int argc, char *argv[])
        if (fname == NULL) {
                p = getenv("TMPDIR");
                if (p == NULL)
-                       p = "/var/tmp";
+                       p = "/tmp";
                (void)snprintf(buf, sizeof buf, "%s/__dbtest", p);
                fname = buf;
                (void)unlink(buf);