[evolution-patches] Patch to fix anonymous nntp



This patch allows anonymous nntp to work again.  The system creates the
URIs as nntp://@news.gmane.org/, which cases the username to be an empty
string rather than NULL.  I didn't patch the construction of the URI,
since it seems that these are system internals and might lose
configuration information if it changes suddenly.

2005-01-22  Jeff Bailey <jbailey ubuntu com>

        * providers/nntp/camel-nntp-store.c
          (connect_to_server): Allow the username to be an empty string
          as well as a NULL for anonymous connections.

--- /tmp/camel-nntp-store.c	2005-01-22 23:39:53.179940688 -0500
+++ camel-nntp-store.c	2005-01-22 22:56:01.000000000 -0500
@@ -253,7 +253,7 @@
 	}
 
 	/* if we have username, try it here */
-	if (service->url->user != NULL
+	if ((service->url->user != NULL && strcmp(service->url->user, ""))
 	    && camel_nntp_try_authenticate(store, ex) != NNTP_AUTH_ACCEPTED)
 		goto fail;
   	

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]