From 8aa042370f9f4a64d2361f5c6f94ff54e103bcf5 Mon Sep 17 00:00:00 2001 From: brad Date: Tue, 2 Jan 2001 18:11:38 +0000 Subject: [PATCH] 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 --- mail/cucipop/patches/patch-cucipop.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 mail/cucipop/patches/patch-cucipop.c diff --git a/mail/cucipop/patches/patch-cucipop.c b/mail/cucipop/patches/patch-cucipop.c new file mode 100644 index 00000000000..95ffbe6b85a --- /dev/null +++ b/mail/cucipop/patches/patch-cucipop.c @@ -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);