aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorKaroly Lorentey2006-05-24 09:13:31 +0000
committerKaroly Lorentey2006-05-24 09:13:31 +0000
commit40a1b46245c1a8786324f5a06d6cb8d4bd9d5b74 (patch)
treef45020695e190f511f4faf4dd3ed144059f298c0 /lib-src
parentdbe9f5ba9648890dc34f4836a49fde766b21ce74 (diff)
parent4ea5193b9cc5c577127ca6c89ecfaad819398d3b (diff)
downloademacs-40a1b46245c1a8786324f5a06d6cb8d4bd9d5b74.tar.gz
emacs-40a1b46245c1a8786324f5a06d6cb8d4bd9d5b74.zip
Merged from emacs@sv.gnu.org
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-289 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-290 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-291 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-292 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-293 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-567
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/pop.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 16c4e538939..9ba3191ed46 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
12006-05-23 Francesco Potort,Al(B <pot@gnu.org>
2
3 * pop.c (pop_open, socket_connection, KPOP_SERVICE): Added
4 comments explaining why the "kpop" service is never used.
5
12006-05-13 Eli Zaretskii <eliz@gnu.org> 62006-05-13 Eli Zaretskii <eliz@gnu.org>
2 7
3 * makefile.w32-in (lisp1): Add fringe.elc. 8 * makefile.w32-in (lisp1): Add fringe.elc.
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);