Date: Wed, 16 Oct 1996 20:12:49 -0700 (MST) From: Don Yuniskis <dgy@rtd.com> To: freebsd-ports@freefall.FreeBSD.org (FreeBSD ports) Subject: cnews diffs Message-ID: <199610170312.UAA15775@seagull.rtd.com>
next in thread | raw e-mail | index | archive | help
Greetings! The following diffs apply to the patch'ed version of cnews distributed with 2.1R. All pertain to the operation of readnews which, admittedly, is probably rarely used... :> The first hunk fixes (?) the path to mail. The remaining prevent readnews from core-ing in certain degenerate applications. Thanx! --don --------------------8<--------------------8<---------------------- diff -r --context work/readnews/defs.h work.new/readnews/defs.h *** work/readnews/defs.h Wed Sep 7 10:02:34 1994 --- work.new/readnews/defs.h Wed Oct 16 20:03:22 1996 *************** *** 18,24 **** /*#define UNSWMAIL 1*/ /* if you have UNSW "mail" which allows "-s subject -i include_file" arguments */ ! #define MAIL "/bin/mail" #if UNSWMAIL #define FASTMAIL "/bin/mail" #else --- 18,24 ---- /*#define UNSWMAIL 1*/ /* if you have UNSW "mail" which allows "-s subject -i include_file" arguments */ ! #define MAIL "/usr/bin/mail" #if UNSWMAIL #define FASTMAIL "/bin/mail" #else diff -r --context work/readnews/funcs.c work.new/readnews/funcs.c *** work/readnews/funcs.c Thu Sep 8 12:38:24 1994 --- work.new/readnews/funcs.c Wed Oct 16 20:03:58 1996 *************** *** 155,160 **** --- 155,163 ---- register char *n, *s, *nd, *sd; register int rc; + if (nglist == NULL || sublist == NULL) + return 0; + rc = 0; n = nglist; while (*n && rc == 0) { diff -r --context work/readnews/readnews.c work.new/readnews/readnews.c *** work/readnews/readnews.c Thu Apr 27 18:12:21 1995 --- work.new/readnews/readnews.c Wed Oct 16 20:04:36 1996 *************** *** 282,287 **** --- 282,290 ---- { register char *delim; + if (slist == NULL) + return false; + while (*slist) { if (delim = strchr(slist, NGSEPCHAR)) *delim = '\0';
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610170312.UAA15775>