SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
22
mail/cucipop/patches/patch-cucipop_c
Normal file
22
mail/cucipop/patches/patch-cucipop_c
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- cucipop.c.orig Fri Feb 23 11:32:24 2001
|
||||
+++ cucipop.c Fri Feb 23 11:32:45 2001
|
||||
@@ -741,7 +741,7 @@
|
||||
!debug&&(errno==ENOTSOCK||errno==EINVAL))
|
||||
{ int serverfd,curfd;
|
||||
signal(SIGHUP,SIG_IGN);signal(SIGPIPE,SIG_IGN);fclose(stdin);
|
||||
- fclose(stdout);serverfd=socket(PF_INET,SOCK_STREAM,TCP_PROT);
|
||||
+ fclose(stdout);serverfd=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
|
||||
#ifdef INET6
|
||||
/* XXX assumes INET */
|
||||
memset(&peername, 0, sizeof(peername));
|
||||
@@ -755,8 +755,8 @@
|
||||
curfd=-1;
|
||||
setsockopt(serverfd,SOL_SOCKET,SO_REUSEADDR,&curfd,sizeof curfd);
|
||||
if(bind(serverfd,(struct sockaddr*)&peername,namelen))
|
||||
- { 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",port);
|
||||
+ fprintf(stderr,"%s: Can't bind socket %d\n",cucipopn,port);
|
||||
return EX_OSFILE;
|
||||
}
|
||||
fclose(stderr);
|
Loading…
Add table
Add a link
Reference in a new issue