aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/pop.c
diff options
context:
space:
mode:
authorMiles Bader2006-06-07 18:05:10 +0000
committerMiles Bader2006-06-07 18:05:10 +0000
commitb883cdb2fefa8ea9c3b0d82eba7a9ee792f871bb (patch)
treede3804210a8cd955e0d3b9abc15679480930bc82 /lib-src/pop.c
parent885b7d0991bd4b4b8f4bd1d3cd21c18a697bbce2 (diff)
parent26c9afc3239e18b03537faaea33e3e82e28099e6 (diff)
downloademacs-b883cdb2fefa8ea9c3b0d82eba7a9ee792f871bb.tar.gz
emacs-b883cdb2fefa8ea9c3b0d82eba7a9ee792f871bb.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 285-296) - Update from CVS - Merge from gnus--rel--5.10 - Update from CVS: admin/FOR-RELEASE: Update refcard section. * gnus--rel--5.10 (patch 102-104) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-64
Diffstat (limited to 'lib-src/pop.c')
-rw-r--r--lib-src/pop.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib-src/pop.c b/lib-src/pop.c
index 7d6bcc5cdc9..5dcbf2d2483 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -135,7 +135,7 @@ static char *find_crlf __P((char *, int));
135#define KPOP_PORT 1109 135#define KPOP_PORT 1109
136#define POP_SERVICE "pop3" /* we don't want the POP2 port! */ 136#define POP_SERVICE "pop3" /* we don't want the POP2 port! */
137#ifdef KERBEROS 137#ifdef KERBEROS
138#define KPOP_SERVICE "kpop" 138#define KPOP_SERVICE "kpop" /* never used: look for 20060515 to see why */
139#endif 139#endif
140 140
141char pop_error[ERROR_MAX]; 141char pop_error[ERROR_MAX];
@@ -264,10 +264,11 @@ pop_open (host, username, password, flags)
264 return (0); 264 return (0);
265 } 265 }
266 } 266 }
267 if (password) 267 if (password) /* always true, detected 20060515 */
268 flags |= POP_NO_KERBEROS; 268 flags |= POP_NO_KERBEROS;
269 else 269 else
270 password = username; 270 password = username; /* dead code, detected 20060515 */
271 /** "kpop" service is never used: look for 20060515 to see why **/
271 272
272 sock = socket_connection (host, flags); 273 sock = socket_connection (host, flags);
273 if (sock == -1) 274 if (sock == -1)
@@ -1047,6 +1048,7 @@ socket_connection (host, flags)
1047 bzero ((char *) &addr, sizeof (addr)); 1048 bzero ((char *) &addr, sizeof (addr));
1048 addr.sin_family = AF_INET; 1049 addr.sin_family = AF_INET;
1049 1050
1051 /** "kpop" service is never used: look for 20060515 to see why **/
1050#ifdef KERBEROS 1052#ifdef KERBEROS
1051 service = (flags & POP_NO_KERBEROS) ? POP_SERVICE : KPOP_SERVICE; 1053 service = (flags & POP_NO_KERBEROS) ? POP_SERVICE : KPOP_SERVICE;
1052#else 1054#else
@@ -1073,6 +1075,7 @@ socket_connection (host, flags)
1073 } 1075 }
1074 else 1076 else
1075 { 1077 {
1078 /** "kpop" service is never used: look for 20060515 to see why **/
1076#ifdef KERBEROS 1079#ifdef KERBEROS
1077 addr.sin_port = htons ((flags & POP_NO_KERBEROS) ? 1080 addr.sin_port = htons ((flags & POP_NO_KERBEROS) ?
1078 POP_PORT : KPOP_PORT); 1081 POP_PORT : KPOP_PORT);