92ec49aca6
Bug Fixes: - The download overlap checking was incorrectly detecting mismatches. - A bug in the network queue caused frequent crashes. - A bug in the event timing caused failures after 25 days uptime. - A stalling issue with TLS connections. - The search retry timeouts weren't accepted. - The order of items in the search history was wrong. - The quick-connect limit wasn't respected causing too frequent connection attempts during startup. - Removed incorrect use of SF_NODISKIO flag for sendfile() on FreeBSD. - Fixed crash that could be triggered by changing the listening port temporarily to zero. - iconv() was not used correctly which could cause wrong conversions for longer strings. - Generated filenames weren't properly restricted in length which could cause crashes. - There was a compile issue on NetBSD caused by namespace pollution. - Added workaround for the issue that on Solaris only the file descriptors 0..255 can be used for stdio. Improvements: - Finished downloads are now seeded for the whole session or until they are manually purged, if partial file-sharing is enabled. - Server-side support for Tigertree hashes and THEX thanks to patches provided by Martijn van Oosterhout. - Improved spam filters.
112 lines
6.2 KiB
Text
112 lines
6.2 KiB
Text
$NetBSD: patch-ae,v 1.5 2007/10/14 08:32:19 adam Exp $
|
|
|
|
--- src/if/gnet_property.c.orig 2007-07-07 06:21:34.000000000 +0200
|
|
+++ src/if/gnet_property.c
|
|
@@ -743,7 +743,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[3].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[3].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[3].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[3].data.string.def = (void *) &gnet_property_variable_new_version_str_default;
|
|
gnet_property->props[3].data.string.value = (void *) &gnet_property_variable_new_version_str;
|
|
if (gnet_property->props[3].data.string.def) {
|
|
@@ -2836,7 +2836,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[112].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[112].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[112].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[112].data.string.def = (void *) &gnet_property_variable_socks_user_default;
|
|
gnet_property->props[112].data.string.value = (void *) &gnet_property_variable_socks_user;
|
|
if (gnet_property->props[112].data.string.def) {
|
|
@@ -2857,7 +2857,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[113].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[113].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[113].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[113].data.string.def = (void *) &gnet_property_variable_socks_pass_default;
|
|
gnet_property->props[113].data.string.value = (void *) &gnet_property_variable_socks_pass;
|
|
if (gnet_property->props[113].data.string.def) {
|
|
@@ -2894,7 +2894,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[115].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[115].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[115].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[115].data.string.def = (void *) &gnet_property_variable_proxy_hostname_default;
|
|
gnet_property->props[115].data.string.value = (void *) &gnet_property_variable_proxy_hostname;
|
|
if (gnet_property->props[115].data.string.def) {
|
|
@@ -3485,7 +3485,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[145].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[145].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[145].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[145].data.string.def = (void *) &gnet_property_variable_scan_extensions_default;
|
|
gnet_property->props[145].data.string.value = (void *) &gnet_property_variable_scan_extensions;
|
|
if (gnet_property->props[145].data.string.def) {
|
|
@@ -3540,7 +3540,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[148].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[148].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[148].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[148].data.string.def = (void *) &gnet_property_variable_save_file_path_default;
|
|
gnet_property->props[148].data.string.value = (void *) &gnet_property_variable_save_file_path;
|
|
if (gnet_property->props[148].data.string.def) {
|
|
@@ -3561,7 +3561,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[149].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[149].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[149].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[149].data.string.def = (void *) &gnet_property_variable_move_file_path_default;
|
|
gnet_property->props[149].data.string.value = (void *) &gnet_property_variable_move_file_path;
|
|
if (gnet_property->props[149].data.string.def) {
|
|
@@ -3582,7 +3582,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[150].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[150].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[150].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[150].data.string.def = (void *) &gnet_property_variable_bad_file_path_default;
|
|
gnet_property->props[150].data.string.value = (void *) &gnet_property_variable_bad_file_path;
|
|
if (gnet_property->props[150].data.string.def) {
|
|
@@ -3603,7 +3603,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[151].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[151].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[151].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[151].data.string.def = (void *) &gnet_property_variable_shared_dirs_paths_default;
|
|
gnet_property->props[151].data.string.value = (void *) &gnet_property_variable_shared_dirs_paths;
|
|
if (gnet_property->props[151].data.string.def) {
|
|
@@ -3624,7 +3624,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[152].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[152].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[152].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[152].data.string.def = (void *) &gnet_property_variable_local_netmasks_string_default;
|
|
gnet_property->props[152].data.string.value = (void *) &gnet_property_variable_local_netmasks_string;
|
|
if (gnet_property->props[152].data.string.def) {
|
|
@@ -4702,7 +4702,7 @@ gnet_prop_init(void) {
|
|
gnet_property->props[210].vector_size = 1;
|
|
|
|
/* Type specific data: */
|
|
- gnet_property->props[210].type = PROP_TYPE_STRING;
|
|
+ gnet_property->props[210].type = gg_PROP_TYPE_STRING;
|
|
gnet_property->props[210].data.string.def = (void *) &gnet_property_variable_server_hostname_default;
|
|
gnet_property->props[210].data.string.value = (void *) &gnet_property_variable_server_hostname;
|
|
if (gnet_property->props[210].data.string.def) {
|
|
@@ -6327,7 +6327,7 @@ gnet_prop_shutdown(void) {
|
|
}
|
|
|
|
for (n = 0; n < GNET_PROPERTY_NUM; n ++) {
|
|
- if (gnet_property->props[n].type == PROP_TYPE_STRING) {
|
|
+ if (gnet_property->props[n].type == gg_PROP_TYPE_STRING) {
|
|
gchar **p = gnet_property->props[n].data.string.value;
|
|
struct event *e = gnet_property->props[n].ev_changed;
|
|
G_FREE_NULL(*p);
|