mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
contribs: fix gnutls build for windows
Change-Id: I74a713c610d4705dc573ced052fef2dd79a6b0f8
This commit is contained in:

committed by
Adrien Béraud

parent
4a14122e39
commit
a091a4bc56
22
contrib/src/gnutls/mkdir_permissions.patch
Normal file
22
contrib/src/gnutls/mkdir_permissions.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff --git a/lib/verify-tofu.c b/lib/verify-tofu.c
|
||||
index 1b92583..3c0dd8d 100644
|
||||
--- a/lib/verify-tofu.c
|
||||
+++ b/lib/verify-tofu.c
|
||||
@@ -493,7 +493,7 @@ int gnutls_store_pubkey(const char *db_name, gnutls_tdb_t tdb, const char *host,
|
||||
return gnutls_assert_val(ret);
|
||||
|
||||
_gnutls_debug_log("Configuration path: %s\n", local_file);
|
||||
- mkdir(local_file, 0700);
|
||||
+ mkdir(local_file);
|
||||
|
||||
ret = find_config_file(local_file, sizeof(local_file));
|
||||
if (ret < 0)
|
||||
@@ -594,7 +594,7 @@ int gnutls_store_commitment(const char *db_name, gnutls_tdb_t tdb,
|
||||
return gnutls_assert_val(ret);
|
||||
|
||||
_gnutls_debug_log("Configuration path: %s\n", local_file);
|
||||
- mkdir(local_file, 0700);
|
||||
+ mkdir(local_file);
|
||||
|
||||
ret = find_config_file(local_file, sizeof(local_file));
|
||||
if (ret < 0)
|
@ -12,7 +12,8 @@
|
||||
"patches": [
|
||||
"gnutls-3.6.7-win32-compat.patch",
|
||||
"gnutls-3.6.7-win32-vs-support.patch",
|
||||
"read-file-limits.h.patch"
|
||||
"read-file-limits.h.patch",
|
||||
"mkdir_permissions.patch"
|
||||
],
|
||||
"win_patches": [],
|
||||
"project_paths": [
|
||||
|
Reference in New Issue
Block a user