summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-07-27 15:35:41 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-07-27 15:35:41 +0000
commitd3fc4aff60b17af785aa264159cb272fd65e7f30 (patch)
tree57cacfd3238b5ad71109cd01d5f39678bf848dd1
parent56e1393163cdfe5f8ee19839f0d72b4a0540334d (diff)
bad Theo, changed a variable name ;-)
-rw-r--r--lib/libc/db/hash/hash_page.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/db/hash/hash_page.c b/lib/libc/db/hash/hash_page.c
index 7a4ad18015b..9081f231789 100644
--- a/lib/libc/db/hash/hash_page.c
+++ b/lib/libc/db/hash/hash_page.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: hash_page.c,v 1.5 1998/07/27 15:33:43 millert Exp $";
+static char rcsid[] = "$OpenBSD: hash_page.c,v 1.6 1998/07/27 15:35:40 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -872,8 +872,8 @@ open_temp(hashp)
/* Block signals; make sure file goes away at process exit. */
(void)sigfillset(&set);
(void)sigprocmask(SIG_BLOCK, &set, &oset);
- if ((hashp->fp = mkstemp(namestr)) != -1) {
- (void)unlink(namestr);
+ if ((hashp->fp = mkstemp(path)) != -1) {
+ (void)unlink(path);
(void)fcntl(hashp->fp, F_SETFD, 1);
}
(void)sigprocmask(SIG_SETMASK, &oset, (sigset_t *)NULL);