FreeBSD Bugzilla – Attachment 23610 Details for
Bug 40601
New port: security/pam_pop3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 3.53 KB, created by
Gea-Suan Lin
on 2002-07-15 17:40:01 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Gea-Suan Lin
Created:
2002-07-15 17:40:01 UTC
Size:
3.53 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># pam_pop3 ># pam_pop3/Makefile ># pam_pop3/distinfo ># pam_pop3/pkg-comment ># pam_pop3/pkg-descr ># pam_pop3/files ># pam_pop3/files/patch-pam_pop3.c ># pam_pop3/pkg-plist ># >echo c - pam_pop3 >mkdir -p pam_pop3 > /dev/null 2>&1 >echo x - pam_pop3/Makefile >sed 's/^X//' >pam_pop3/Makefile << 'END-of-pam_pop3/Makefile' >X# New ports collection makefile for: pam_pop3 >X# Date created: 16 July 2002 >X# Whom: Gea-Suan Lin <gslin@ccca.nctu.edu.tw> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= pam_pop3 >XPORTVERSION= 1.0 >XCATEGORIES= security >XMASTER_SITES= http://shum.huji.ac.il/~schapiro/linux/pam_pop3/ >X >XMAINTAINER= gslin@ccca.nctu.edu.tw >X >XWRKSRC= ${WRKDIR}/${PORTNAME} >X >X.if !defined(NOPORTDOCS) >XPLIST_SUB+= "PORTSDOC=" >X.else >XPLIST_SUB+= "PORTSDOC=@comment " >X.endif >X >Xdo-build: >X ${CC} -O -pipe -fpic -DPIC -Wall -c ${WRKSRC}/pam_pop3.c -o ${WRKSRC}/pam_pop3.o >X ${LD} -x --shared -o ${WRKSRC}/pam_pop3.so ${WRKSRC}/pam_pop3.o -lpam -lcrypt >X >Xdo-install: >X @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}.so ${PREFIX}/lib >X.if !defined(NOPORTDOCS) >X @${MKDIR} ${DOCSDIR} >X @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} >X.endif >X >X.include <bsd.port.mk> >END-of-pam_pop3/Makefile >echo x - pam_pop3/distinfo >sed 's/^X//' >pam_pop3/distinfo << 'END-of-pam_pop3/distinfo' >XMD5 (pam_pop3-1.0.tar.gz) = e9bfebe349f79e308ff8d329e5b25f91 >END-of-pam_pop3/distinfo >echo x - pam_pop3/pkg-comment >sed 's/^X//' >pam_pop3/pkg-comment << 'END-of-pam_pop3/pkg-comment' >XThis module authenticates a user against a POP3 server. >END-of-pam_pop3/pkg-comment >echo x - pam_pop3/pkg-descr >sed 's/^X//' >pam_pop3/pkg-descr << 'END-of-pam_pop3/pkg-descr' >Xpam_pop3 version 10.09.2001 by Schlomo Schapiro (schapiro@huji.ac.il) >X >XThis module authenticates a user against a POP3 server. >XIt supplies only the AUTH functions. >X >XWWW: http://shum.huji.ac.il/~schapiro/linux/ >END-of-pam_pop3/pkg-descr >echo c - pam_pop3/files >mkdir -p pam_pop3/files > /dev/null 2>&1 >echo x - pam_pop3/files/patch-pam_pop3.c >sed 's/^X//' >pam_pop3/files/patch-pam_pop3.c << 'END-of-pam_pop3/files/patch-pam_pop3.c' >X--- pam_pop3.c.orig Tue Jul 16 00:14:29 2002 >X+++ pam_pop3.c Tue Jul 16 00:16:38 2002 >X@@ -21,6 +21,7 @@ >X #include <errno.h> >X #include <netdb.h> >X #include <sys/types.h> >X+#include <sys/time.h> >X #include <netinet/in.h> >X #include <sys/socket.h> >X >X@@ -85,7 +86,7 @@ >X close(sockfd); >X return -1; >X } >X- if ((numbytes=recv(sockfd,buf,BUFLEN-1,MSG_NOSIGNAL))<=0) >X+ if ((numbytes=recv(sockfd,buf,BUFLEN-1,0))<=0) >X { >X if (numbytes==0) >X /* other side closed connection */ >X@@ -138,7 +139,7 @@ >X close(sockfd); >X return -1; >X } >X- if ((numbytes=send(sockfd,buf,strlen(buf),MSG_NOSIGNAL))<strlen(buf)) >X+ if ((numbytes=send(sockfd,buf,strlen(buf),0))<strlen(buf)) >X { >X /* it did not send everything, try once more and then fail */ >X if (numbytes>0) >X@@ -153,7 +154,7 @@ >X return -1; >X } >X /* send remaining bytes */ >X- numbytes+=send(sockfd,buf+numbytes,strlen(buf)-numbytes,MSG_NOSIGNAL); >X+ numbytes+=send(sockfd,buf+numbytes,strlen(buf)-numbytes,0); >X } >X if (numbytes!=strlen(buf)) >X { >END-of-pam_pop3/files/patch-pam_pop3.c >echo x - pam_pop3/pkg-plist >sed 's/^X//' >pam_pop3/pkg-plist << 'END-of-pam_pop3/pkg-plist' >Xlib/pam_pop3.so >X%%PORTSDOC%%share/doc/pam_pop3/README >X%%PORTSDOC%%@dirrm share/doc/pam_pop3 >END-of-pam_pop3/pkg-plist >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 40601
: 23610