summaryrefslogtreecommitdiff
path: root/security/pam_pop3/files/patch-pam_pop3.c
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-15 16:48:37 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-15 16:48:37 +0000
commitdfc45f443213b16076e40937d952c74be1a0cb7a (patch)
tree860825f5cdd582584a07514fbbabbe9b56bfdfc0 /security/pam_pop3/files/patch-pam_pop3.c
parentUse USE_GNOMENG. (diff)
add pam_pop3 1.0
This module authenticates a user against a POP3 server PR: 40601 Submitted by: Gea-Suan Lin <gslin@Infomath.math.NCTU.edu.tw>
Diffstat (limited to 'security/pam_pop3/files/patch-pam_pop3.c')
-rw-r--r--security/pam_pop3/files/patch-pam_pop3.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/security/pam_pop3/files/patch-pam_pop3.c b/security/pam_pop3/files/patch-pam_pop3.c
new file mode 100644
index 000000000000..6eff9e2bf73c
--- /dev/null
+++ b/security/pam_pop3/files/patch-pam_pop3.c
@@ -0,0 +1,37 @@
+--- pam_pop3.c.orig Tue Jul 16 00:14:29 2002
++++ pam_pop3.c Tue Jul 16 00:16:38 2002
+@@ -21,6 +21,7 @@
+ #include <errno.h>
+ #include <netdb.h>
+ #include <sys/types.h>
++#include <sys/time.h>
+ #include <netinet/in.h>
+ #include <sys/socket.h>
+
+@@ -85,7 +86,7 @@
+ close(sockfd);
+ return -1;
+ }
+- if ((numbytes=recv(sockfd,buf,BUFLEN-1,MSG_NOSIGNAL))<=0)
++ if ((numbytes=recv(sockfd,buf,BUFLEN-1,0))<=0)
+ {
+ if (numbytes==0)
+ /* other side closed connection */
+@@ -138,7 +139,7 @@
+ close(sockfd);
+ return -1;
+ }
+- if ((numbytes=send(sockfd,buf,strlen(buf),MSG_NOSIGNAL))<strlen(buf))
++ if ((numbytes=send(sockfd,buf,strlen(buf),0))<strlen(buf))
+ {
+ /* it did not send everything, try once more and then fail */
+ if (numbytes>0)
+@@ -153,7 +154,7 @@
+ return -1;
+ }
+ /* send remaining bytes */
+- numbytes+=send(sockfd,buf+numbytes,strlen(buf)-numbytes,MSG_NOSIGNAL);
++ numbytes+=send(sockfd,buf+numbytes,strlen(buf)-numbytes,0);
+ }
+ if (numbytes!=strlen(buf))
+ {