Remove news/newsfetch. The code is in very bad shape and has at least
one unfixed CVE. No objection from sebastia@
This commit is contained in:
parent
314348b4ea
commit
e0d9d5f3f5
|
@ -1,10 +1,9 @@
|
|||
# $OpenBSD: Makefile,v 1.26 2012/08/18 07:25:25 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.27 2014/11/01 10:31:21 jca Exp $
|
||||
|
||||
SUBDIR =
|
||||
SUBDIR += aub
|
||||
SUBDIR += hellanzb
|
||||
SUBDIR += leafnode
|
||||
SUBDIR += newsfetch
|
||||
SUBDIR += nn
|
||||
SUBDIR += p5-Gateway
|
||||
SUBDIR += p5-News-Article
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
# $OpenBSD: Makefile,v 1.24 2014/10/29 00:07:17 jca Exp $
|
||||
|
||||
COMMENT= download news articles from NNTP server
|
||||
|
||||
DISTNAME= newsfetch-1.21
|
||||
REVISION= 0
|
||||
CATEGORIES= news
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE:=system/news/readers/}
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB= c
|
||||
|
||||
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
FAKE_FLAGS= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
||||
INSTALL_MAN="${INSTALL_MAN}"
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
ALL_TARGET= newsfetch
|
||||
|
||||
.include <bsd.port.mk>
|
|
@ -1,2 +0,0 @@
|
|||
SHA256 (newsfetch-1.21.tar.gz) = TPitNyrfvf32+FMRrezr5FqPVKL4wh3gSjz2BBhYctI=
|
||||
SIZE (newsfetch-1.21.tar.gz) = 10758
|
|
@ -1,21 +0,0 @@
|
|||
$OpenBSD: patch-Makefile,v 1.2 2014/10/29 00:07:17 jca Exp $
|
||||
--- Makefile.orig Mon Apr 13 11:09:54 1998
|
||||
+++ Makefile Wed Oct 29 00:41:24 2014
|
||||
@@ -7,8 +7,7 @@ CFLAGS =
|
||||
objs = newsfetch.o nntp.o net.o opt.o util.o getopt.o
|
||||
|
||||
newsfetch: $(objs)
|
||||
- $(CC) -o newsfetch $(objs)
|
||||
- strip newsfetch
|
||||
+ $(CC) $(LDFLAGS) -o newsfetch $(objs)
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CFLAGS) $<
|
||||
@@ -17,5 +16,5 @@ clean:
|
||||
rm -f *.o newsfetch
|
||||
|
||||
install:
|
||||
- cp newsfetch /usr/local/bin
|
||||
- cp newsfetch.1 /usr/man/man1
|
||||
+ $(INSTALL_PROGRAM) newsfetch $(PREFIX)/bin
|
||||
+ $(INSTALL_MAN) newsfetch.1 $(PREFIX)/man/man1
|
|
@ -1,13 +0,0 @@
|
|||
$OpenBSD: patch-net_c,v 1.2 2012/08/06 20:32:22 naddy Exp $
|
||||
--- net.c.orig Mon Apr 13 11:09:26 1998
|
||||
+++ net.c Mon Aug 6 22:23:24 2012
|
||||
@@ -7,7 +7,9 @@
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
+#include <string.h>
|
||||
#include <fcntl.h>
|
||||
+#include <ctype.h>
|
||||
|
||||
extern int h_errno;
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
$OpenBSD: patch-newsfetch_c,v 1.2 2012/08/06 20:32:22 naddy Exp $
|
||||
--- newsfetch.c.orig Thu Jul 23 11:28:56 1998
|
||||
+++ newsfetch.c Mon Aug 6 22:24:26 2012
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
#include <pwd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -17,6 +18,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
+#include <string.h>
|
||||
|
||||
#include "newsfetch.h"
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
$OpenBSD: patch-nntp_c,v 1.1 2012/08/06 20:32:22 naddy Exp $
|
||||
--- nntp.c.orig Mon Aug 6 22:25:44 2012
|
||||
+++ nntp.c Mon Aug 6 22:26:07 2012
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <pwd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
|
@ -1,31 +0,0 @@
|
|||
$OpenBSD: patch-opt_c,v 1.2 2004/01/04 21:39:33 espie Exp $
|
||||
--- opt.c.orig 1998-04-13 16:39:59.000000000 +0200
|
||||
+++ opt.c 2004-01-04 22:36:26.000000000 +0100
|
||||
@@ -1,4 +1,6 @@
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include "newsfetch.h"
|
||||
|
||||
@@ -34,7 +36,7 @@ while (1)
|
||||
-Y -> pipe each article
|
||||
*/
|
||||
c = Getopt(argc, argv, "w:t:T:d:f:U:N:x:p:P:Y:yslVvchH-");
|
||||
- if (c == EOF)
|
||||
+ if (c == -1)
|
||||
break;
|
||||
|
||||
switch (c)
|
||||
@@ -192,9 +194,8 @@ opt_help(char *prog_name)
|
||||
{
|
||||
|
||||
char *options=
|
||||
-" [-clsyvV] [-d dirname] [-f rcfile] [-t N]
|
||||
- [-T timeout] [-w M ] [-pPY filter] [-x command]
|
||||
-";
|
||||
+" [-clsyvV] [-d dirname] [-f rcfile] [-t N] \n"
|
||||
+" [-T timeout] [-w M ] [-pPY filter] [-x command]\n";
|
||||
fprintf(stderr,"Usage: %s nntp_server [options]\n", prog_name);
|
||||
fprintf(stderr,"Options:\n%s\n",options);
|
||||
exit(1);
|
|
@ -1,43 +0,0 @@
|
|||
$OpenBSD: patch-util_c,v 1.3 2012/08/06 20:32:22 naddy Exp $
|
||||
--- util.c.orig Mon Apr 13 09:47:40 1998
|
||||
+++ util.c Mon Aug 6 22:24:53 2012
|
||||
@@ -1,10 +1,12 @@
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <pwd.h>
|
||||
+#include <string.h>
|
||||
#include "newsfetch.h"
|
||||
|
||||
extern int errno;
|
||||
@@ -61,16 +63,16 @@ generateProcmailrc(char *homedir, char *rcfile, char *
|
||||
FILE *fp, *fp1, *fp2;
|
||||
char *tmp, buf[200], group[180], filterfile[100], procmailrcfile[100];
|
||||
int i,j;
|
||||
-char *title="
|
||||
-
|
||||
-############### Generated by Newsfetch ##############################
|
||||
-# New version of Newsfetch is available from #
|
||||
-# #
|
||||
-# http://ulf.wep.net/newsfetch.html #
|
||||
-# Feedback and Comments to Yusuf Motiwala <yusuf@scientist.com> #
|
||||
-######################################################################
|
||||
-
|
||||
-";
|
||||
+char *title="\n"
|
||||
+"\n"
|
||||
+"############### Generated by Newsfetch ##############################\n"
|
||||
+"# New version of Newsfetch is available from #\n"
|
||||
+"# #\n"
|
||||
+"# http://ulf.wep.net/newsfetch.html #\n"
|
||||
+"# Feedback and Comments to Yusuf Motiwala <yusuf@scientist.com> #\n"
|
||||
+"######################################################################\n"
|
||||
+"\n"
|
||||
+"";
|
||||
|
||||
strcpy(filterfile,homedir);
|
||||
strcat(filterfile,"/");
|
|
@ -1,3 +0,0 @@
|
|||
newsfetch pulls news from an NNTP server and writes the articles to
|
||||
a file named same as newsgroup name. The file created by newsfetch can
|
||||
be used with any mail reader.
|
|
@ -1,3 +0,0 @@
|
|||
@comment $OpenBSD: PLIST,v 1.4 2014/10/29 00:07:17 jca Exp $
|
||||
@bin bin/newsfetch
|
||||
@man man/man1/newsfetch.1
|
Loading…
Reference in New Issue
Block a user