Skip to content

Commit

Permalink
Merge branch 'testnet' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed Oct 19, 2024
2 parents 1081d53 + 2a9e317 commit 92bf8af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions depends/packages/libzip.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package=libzip
$(package)_version=1.10.1
$(package)_version=1.11.1
$(package)_download_path=https://libzip.org/download/
$(package)_file_name=$(package)-$($(package)_version).tar.gz
$(package)_sha256_hash=9669ae5dfe3ac5b3897536dc8466a874c8cf2c0e3b1fdd08d75b273884299363
$(package)_sha256_hash=c0e6fa52a62ba11efd30262290dc6970947aef32e0cc294ee50e9005ceac092a
$(package)_dependencies=zlib

define $(package)_set_vars
Expand All @@ -20,6 +20,7 @@ $(package)_config_opts+=-DBUILD_REGRESS=OFF
$(package)_config_opts+=-DBUILD_OSSFUZZ=OFF
$(package)_config_opts+=-DBUILD_EXAMPLES=OFF
$(package)_config_opts+=-DBUILD_DOC=OFF
$(package)_config_opts_mingw32+=-DCMAKE_SYSTEM_IGNORE_PATH=/usr/include
endef

define $(package)_config_cmds
Expand Down
3 changes: 2 additions & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "sync.h"
#include "version.h"
#include "node/ui_interface.h"
#include <random.h>
#include "util.h"
#include <util/strencodings.h>
#include <util/string.h>
Expand Down Expand Up @@ -189,7 +190,7 @@ bool TryCreateDirectories(const fs::path& p)

bool DirIsWritable(const fs::path& directory)
{
fs::path tmpFile = directory / fs::unique_path();
fs::path tmpFile = directory / fs::path(HexStr(FastRandomContext().randbytes(8)));

FILE* file = fsbridge::fopen(tmpFile, "a");
if (!file) return false;
Expand Down

0 comments on commit 92bf8af

Please sign in to comment.