add patch to make sure cucipop returns the correct port number specified
by the -p option if it fails to bind to the port, otherwise it will always print port 110 instead of the real port number. Based on a patch from: Ian Darwin <ian@darwinsys.com>
This commit is contained in:
parent
981fbe87ca
commit
8aa042370f
13
mail/cucipop/patches/patch-cucipop.c
Normal file
13
mail/cucipop/patches/patch-cucipop.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- cucipop.c.orig Wed Dec 27 12:22:36 2000
|
||||
+++ cucipop.c Wed Dec 27 12:27:55 2000
|
||||
@@ -754,8 +754,8 @@
|
||||
curfd=-1;
|
||||
setsockopt(serverfd,SOL_SOCKET,SO_REUSEADDR,&curfd,sizeof curfd);
|
||||
if(bind(serverfd,(struct sockaddr*)&peername,sizeof peername))
|
||||
- { syslog(LOG_CRIT,"unable to bind socket %d",POP3_PORT);
|
||||
- fprintf(stderr,"%s: Can't bind socket %d\n",cucipopn,POP3_PORT);
|
||||
+ { syslog(LOG_CRIT,"unable to bind socket %d",htons(port));
|
||||
+ fprintf(stderr,"%s: Can't bind socket %d\n",cucipopn,htons(port));
|
||||
return EX_OSFILE;
|
||||
}
|
||||
fclose(stderr);
|
Loading…
Reference in New Issue
Block a user