From 6493fa5c7f616520eed25c2357914afe80c9eb56 Mon Sep 17 00:00:00 2001 From: David Timber Date: Sat, 30 Oct 2021 11:21:00 +0800 Subject: Code documentation and bug fixes ... * Add convenience function prne_sfree_str() * Use prne_sfree_str() to scrub off sensitive data * Making the brute force login vector optional BNE param cred_dict can be null * Use O_EXCL when creating temporary files * Fix bug where bne_cb_uptime() returns the up time of the child process, not the parent --- src/htbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/htbt.c') diff --git a/src/htbt.c b/src/htbt.c index 1389c5f..ff42108 100644 --- a/src/htbt.c +++ b/src/htbt.c @@ -1638,7 +1638,7 @@ static bool htbt_slv_srv_bin ( errno = 0; fd = ctx->cbset->tmpfile( ctx->cb_ctx, - O_CREAT | O_TRUNC | O_WRONLY, + O_CREAT | O_TRUNC | O_WRONLY | O_EXCL, 0700, bin_meta.alloc_len, &path); -- cgit