summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-02 10:14:09 +0000
committerkris <kris@FreeBSD.org>2000-11-02 10:14:09 +0000
commitae4267829cabe24ea4fc3f80a6ea0e5c987237eb (patch)
tree4bf1c06fb44977b87b1cd07cfdb2c2cc4143db7a /lib/libc
parent2bcb9c36d1a5492cdaed585650f53b2fea2a46aa (diff)
downloadFreeBSD-src-ae4267829cabe24ea4fc3f80a6ea0e5c987237eb.zip
FreeBSD-src-ae4267829cabe24ea4fc3f80a6ea0e5c987237eb.tar.gz
More secure temporary filename. This needs to be revisited to use
mkstemp().
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/db/btree/bt_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/db/btree/bt_open.c b/lib/libc/db/btree/bt_open.c
index e838f25..d3c353f 100644
--- a/lib/libc/db/btree/bt_open.c
+++ b/lib/libc/db/btree/bt_open.c
@@ -396,7 +396,7 @@ tmp()
if (issetugid() == 0)
envtmp = getenv("TMPDIR");
(void)snprintf(path,
- sizeof(path), "%s/bt.XXXXXX", envtmp ? envtmp : "/tmp");
+ sizeof(path), "%s/bt.XXXXXXXXXX", envtmp ? envtmp : "/tmp");
(void)sigfillset(&set);
(void)sigprocmask(SIG_BLOCK, &set, &oset);
OpenPOWER on IntegriCloud