mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
fix goof with build - my fault
This commit is contained in:
parent
3035c026fc
commit
7cb7f42027
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25840
2 changed files with 30 additions and 23 deletions
|
@ -32,9 +32,9 @@
|
|||
|
||||
ipopd: ipop2d ipop3d
|
||||
|
||||
--- src/mtest/Makefile.orig Wed Apr 15 07:42:04 1998
|
||||
+++ src/mtest/Makefile Fri Feb 4 14:37:44 2000
|
||||
@@ -39,14 +39,16 @@
|
||||
--- src/mtest/Makefile.orig Wed Apr 15 01:42:04 1998
|
||||
+++ src/mtest/Makefile Sat Oct 10 21:48:18 1998
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
CC = `cat $C/CCTYPE`
|
||||
CFLAGS = -I$C `cat $C/CFLAGS`
|
||||
|
@ -43,15 +43,3 @@
|
|||
|
||||
all: mtest
|
||||
|
||||
-mtest: $(CCLIENTLIB) mtest.o
|
||||
- $(CC) $(CFLAGS) -o mtest mtest.o $(LDFLAGS)
|
||||
+mtest: $(CCLIENTLIB) mtest.o safegets.o
|
||||
+ $(CC) $(CFLAGS) -o mtest mtest.o safegets.o $(LDFLAGS)
|
||||
|
||||
-mtest.o: $C/mail.h $C/misc.h $C/osdep.h $C/rfc822.h $C/smtp.h $C/nntp.h
|
||||
+mtest.o: safegets.h $C/mail.h $C/misc.h $C/osdep.h $C/rfc822.h $C/smtp.h $C/nntp.h
|
||||
+
|
||||
+safegets.o: safegets.h $C/mail.h
|
||||
|
||||
$(CCLIENTLIB):
|
||||
cd $C;make
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
--- src/mtest/mtest.c.orig Sat May 29 08:07:06 1999
|
||||
+++ src/mtest/mtest.c Fri Feb 4 12:25:32 2000
|
||||
@@ -49,6 +49,7 @@
|
||||
#include "rfc822.h"
|
||||
#include "smtp.h"
|
||||
#include "nntp.h"
|
||||
+#include "safegets.h"
|
||||
|
||||
/* Excellent reasons to hate ifdefs, and why my real code never uses them */
|
||||
+++ src/mtest/mtest.c Sun Dec 19 15:29:29 1999
|
||||
@@ -95,6 +95,7 @@
|
||||
void status (MAILSTREAM *stream);
|
||||
void prompt (char *msg,char *txt);
|
||||
void smtptest (long debug);
|
||||
+char *safegets(char *buf);
|
||||
|
||||
/* Main program - initialization */
|
||||
|
||||
@@ -528,7 +529,7 @@
|
||||
void prompt (char *msg,char *txt)
|
||||
|
@ -26,3 +26,22 @@
|
|||
if (line[0] == '.') {
|
||||
if (line[1] == '\0') break;
|
||||
else strcat (text,".");
|
||||
@@ -744,4 +745,18 @@
|
||||
else puts ("[Can't open connection to any server]");
|
||||
mail_free_envelope (&msg);
|
||||
mail_free_body (&body);
|
||||
+}
|
||||
+
|
||||
+char *safegets(char *buf) {
|
||||
+ char *p;
|
||||
+
|
||||
+ if (!fgets(buf, MAILTMPLEN, stdin)) {
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ if ((p = strchr(buf, '\n')) != NULL) {
|
||||
+ *p = '\0';
|
||||
+ }
|
||||
+
|
||||
+ return buf;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue