home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
trn36-2.zip
/
patches.trn
< prev
next >
Wrap
Text File
|
1996-09-11
|
16KB
|
389 lines
diff -cb orig/addng.c ./addng.c
*** orig/addng.c Wed Sep 04 08:58:04 1996
--- ./addng.c Wed Sep 11 08:48:06 1996
***************
*** 164,174 ****
fprintf(stderr, "Please send email to haen@veces.stgt.sub.org!!\n");
}
sprintf(anothername,"%s/rnew.%$",uupc_rc_settings.temp_name);
! tmpname = filexp(tmpname);
! free(tmpname);
/*end of patch*/
- tmpname = filexp(RNEWNAME);
tmpfp = fos2open(tmpname,"w+");
if (tmpfp == Nullfp) {
printf(cantcreate,tmpname) FLUSH;
--- 164,173 ----
fprintf(stderr, "Please send email to haen@veces.stgt.sub.org!!\n");
}
sprintf(anothername,"%s/rnew.%$",uupc_rc_settings.temp_name);
! tmpname = filexp(anothername);
! free(anothername);
/*end of patch*/
tmpfp = fos2open(tmpname,"w+");
if (tmpfp == Nullfp) {
printf(cantcreate,tmpname) FLUSH;
diff -cb orig/common.h ./common.h
*** orig/common.h Tue Jan 24 17:19:10 1995
--- ./common.h Sat Feb 18 23:20:24 1995
***************
*** 661,673 ****
#ifndef NEWSHEADER /* % */
# ifdef USE_NNTP
# ifdef CONDSUB
! # define NEWSHEADER "From: %L@%H (%N)\n%(%[followup-to]=^$?:X-ORIGINAL-NEWSGROUPS: %n\n)Newsgroups: %(%F=^$?%C:%F)\nSubject: %(%S=^$?%\"\n\nSubject: \":Re: %S)\nSummary: \n%(%R=^$?:References: %R\n)Sender: \nFollowup-To: \n%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}\n)Distribution: %(%i=^$?%\"Distribution: \":%D)\nOrganization: %o\nX-Newsreader: TRN 1.97 w/NNTP (beta) for OS/2\nKeywords: %[keywords]\nCc: %(%F=poster?%t:%(%F!=@?:%F))\n\n"
# else
# define NEWSHEADER "Newsgroups: %F\nSubject: Re: %S\nSummary: \nExpires: \nReferences: %R\nSender: \nFollowup-To: \nDistribution: %D\nOrganization: %o\nX-Newsreader: TRN 1.97 w/NNTP (beta) for OS/2\nKeywords: %[keywords]\n\n"
# endif
# else
# ifdef CONDSUB
! # define NEWSHEADER "From: %L@%H (%N)\n%(%[followup-to]=^$?:X-ORIGINAL-NEWSGROUPS: %n\n)Newsgroups: %(%F=^$?%C:%F)\nSubject: %(%S=^$?%\"\n\nSubject: \":Re: %S)\nSummary: \n%(%R=^$?:References: %R\n)Sender: \nFollowup-To: \n%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}\n)Distribution: %(%i=^$?%\"Distribution: \":%D)\nOrganization: %o\nX-Newsreader: TRN 1.97 w/UUPC (beta) for OS/2\nKeywords: %[keywords]\nCc: %(%F=poster?%t:%(%F!=@?:%F))\n\n"
# else
# define NEWSHEADER "Newsgroups: %F\nSubject: Re: %S\nSummary: \nExpires: \nReferences: %R\nSender: \nFollowup-To: \nDistribution: %D\nOrganization: %o\nX-Newsreader: TRN 1.97 w/UUPC (beta) for OS/2\nKeywords: %[keywords]\n\n"
# endif
--- 661,673 ----
#ifndef NEWSHEADER /* % */
# ifdef USE_NNTP
# ifdef CONDSUB
! # define NEWSHEADER "From: %L@%H (%N)\n%(%[followup-to]=^$?:X-Original-Newsgroups: %n\n)Newsgroups: %(%F=^$?%C:%F)\nSubject: %(%S=^$?%\"\n\nSubject: \":Re: %S)\nSummary: \n%(%R=^$?:References: %R\n)Sender: \nFollowup-To: \n%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}\n)Distribution: %(%i=^$?%\"Distribution: \":%D)\nOrganization: %o\nX-Newsreader: TRN 1.97 w/NNTP (beta) for OS/2\nKeywords: %[keywords]\nCc: %(%F=poster?%t:%(%F!=@?:%F))\n\n"
# else
# define NEWSHEADER "Newsgroups: %F\nSubject: Re: %S\nSummary: \nExpires: \nReferences: %R\nSender: \nFollowup-To: \nDistribution: %D\nOrganization: %o\nX-Newsreader: TRN 1.97 w/NNTP (beta) for OS/2\nKeywords: %[keywords]\n\n"
# endif
# else
# ifdef CONDSUB
! # define NEWSHEADER "From: %L@%H (%N)\n%(%[followup-to]=^$?:X-Original-Newsgroups: %n\n)Newsgroups: %(%F=^$?%C:%F)\nSubject: %(%S=^$?%\"\n\nSubject: \":Re: %S)\nSummary: \n%(%R=^$?:References: %R\n)Sender: \nFollowup-To: \n%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}\n)Distribution: %(%i=^$?%\"Distribution: \":%D)\nOrganization: %o\nX-Newsreader: TRN 1.97 w/UUPC (beta) for OS/2\nKeywords: %[keywords]\nCc: %(%F=poster?%t:%(%F!=@?:%F))\n\n"
# else
# define NEWSHEADER "Newsgroups: %F\nSubject: Re: %S\nSummary: \nExpires: \nReferences: %R\nSender: \nFollowup-To: \nDistribution: %D\nOrganization: %o\nX-Newsreader: TRN 1.97 w/UUPC (beta) for OS/2\nKeywords: %[keywords]\n\n"
# endif
diff -cb orig/config.h ./config.h
*** orig/config.h Sat Jan 28 22:09:18 1995
--- ./config.h Sat Feb 18 23:27:08 1995
***************
*** 437,443 ****
* This symbol contains the posting host's name or a file from which
* to read its name.
*/
! #define PHOSTNAME uupc_rc_settings.site /**/
/* PRIVLIB:
* This symbol contains the name of the private library for this package.
--- 437,443 ----
* This symbol contains the posting host's name or a file from which
* to read its name.
*/
! #define PHOSTNAME uupc_rc_settings.domain /**/
/* PRIVLIB:
* This symbol contains the name of the private library for this package.
diff -cb orig/Makefile ./Makefile
*** orig/Makefile Sat Feb 18 23:37:10 1995
--- ./Makefile Sat Feb 18 23:09:40 1995
***************
*** 18,30 ****
# -DNO_LISTGROUP avoids attempting to use LISTGROUP
# -DREPLYTO_POSTER_CHECKING makes -p also check Reply-To (slow)
! CC = gcc
TOUCH = touch
#for NNTP, -O will cause a trap so don't use it if you don't wannadebug it
! CFLAGS = -DDEBUG -DCOMPILING_TRN -DUSE_NNTP
#for UUPC
! #CFLAGS = -O -DDEBUG -DCOMPILING_TRN
LDFLAGS = -Zcrtdll -Zstack 512 -s
--- 18,30 ----
# -DNO_LISTGROUP avoids attempting to use LISTGROUP
# -DREPLYTO_POSTER_CHECKING makes -p also check Reply-To (slow)
! CC = gcc -Zomf
TOUCH = touch
#for NNTP, -O will cause a trap so don't use it if you don't wannadebug it
! #CFLAGS = -DDEBUG -DCOMPILING_TRN -DUSE_NNTP
#for UUPC
! CFLAGS = -O -DDEBUG -DCOMPILING_TRN
LDFLAGS = -Zcrtdll -Zstack 512 -s
***************
*** 34,54 ****
strftimeo =
#for NNTP
! nntpsrc = nntp.c nntpinit.c nntplist.c nntpclient.c
! nntpobj = nntp.o nntpinit.o nntpclient.o
#for UUPC
! #nntpsrc =
! #nntpobj =
#for NNTP
! libs = -lm -lsocket
#for UUPC
! #libs = -lm
#for NNTP
! public = trn.exe trn-artchk.exe nntplist.exe
#for UUPC
! #public = trn.exe trn-artchk.exe
h1 = addng.h art.h artio.h artsrch.h autosub.h backpage.h bits.h cache.h
h2 = charsubst.h common.h decode.h final.h hash.h head.h help.h init.h
--- 34,54 ----
strftimeo =
#for NNTP
! #nntpsrc = nntp.c nntpinit.c nntplist.c nntpclient.c
! #nntpobj = nntp.o nntpinit.o nntpclient.o
#for UUPC
! nntpsrc =
! nntpobj =
#for NNTP
! #libs = -lm -lsocket
#for UUPC
! libs = -lm
#for NNTP
! #public = trn.exe trn-artchk.exe nntplist.exe
#for UUPC
! public = trn.exe trn-artchk.exe
h1 = addng.h art.h artio.h artsrch.h autosub.h backpage.h bits.h cache.h
h2 = charsubst.h common.h decode.h final.h hash.h head.h help.h init.h
***************
*** 80,86 ****
obj = $(obj1) $(obj2) $(obj3) $(obj4) $(obj5) $(obj6) $(obj7)
.c.o:
! $(CC) -c $(CFLAGS) $<
all: $(public) $(util)
$(TOUCH) all
--- 80,86 ----
obj = $(obj1) $(obj2) $(obj3) $(obj4) $(obj5) $(obj6) $(obj7)
.c.o:
! $(CC) -c $(CFLAGS) -o $@ $<
all: $(public) $(util)
$(TOUCH) all
***************
*** 120,126 ****
# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
acttimes.o: os2patch.h ../common/conf.h
addng.o: extern.h common.h trn.h ngdata.h last.h util.h intrp.h only.h rcstuff.h nntp.h final.h intern.h addng.h
- $(CC) -c $(CFLAGS) -o $@ addng.c
art.o: extern.h common.h trn.h ngstuff.h ngdata.h cache.h bits.h head.h help.h search.h artio.h ng.h final.h artstate.h rcstuff.h term.h sw.h util.h util2.h nntp.h backpage.h intrp.h rthread.h rt-select.h rt-util.h rt-wumpus.h charsubst.h intern.h art.h
artio.o: extern.h common.h cache.h rthread.h head.h nntp.h art.h bits.h final.h ngdata.h intern.h artio.h
artsrch.o: extern.h common.h search.h term.h util.h intrp.h cache.h bits.h kfile.h head.h final.h nntp.h ng.h ngdata.h ngstuff.h artio.h rthread.h rt-select.h intern.h artsrch.h
--- 120,125 ----
diff -cb orig/nntpinit.c ./nntpinit.c
*** orig/nntpinit.c Mon Sep 11 23:15:44 1995
--- ./nntpinit.c Wed Sep 11 20:02:30 1996
***************
*** 44,50 ****
#include <netdnet/dnetdb.h>
#endif /* DECNET */
! unsigned long inet_addr _((char *x));
int get_tcp_socket _((char *machine));
int
--- 44,50 ----
#include <netdnet/dnetdb.h>
#endif /* DECNET */
! /* unsigned long inet_addr _((char *x)); */
int get_tcp_socket _((char *machine));
int
diff -cb orig/os2trn.c ./os2trn.c
*** orig/os2trn.c Sun Jan 08 12:29:08 1995
--- ./os2trn.c Sat Feb 18 23:13:28 1995
***************
*** 229,235 ****
if (includesig) {
printf("\nIncluding Signature...\n");
fflush(stdout);
! fprintf(header_fp,"\n\n--\n");
while(fgets(tmpbuffer,255,signature_fp)) {
fprintf(header_fp,"%s",tmpbuffer); }
}
--- 229,235 ----
if (includesig) {
printf("\nIncluding Signature...\n");
fflush(stdout);
! /* fprintf(header_fp,"\n\n--\n"); */
while(fgets(tmpbuffer,255,signature_fp)) {
fprintf(header_fp,"%s",tmpbuffer); }
}
***************
*** 247,253 ****
printf("\nIncluding Signature...\n");
fflush(stdout);
fseek(header_fp,0l,SEEK_END);
! fprintf(header_fp,"\n\n--\n");
while(fgets(tmpbuffer,255,signature_fp))
fprintf(header_fp,"%s",tmpbuffer);
fclose(header_fp);
--- 247,253 ----
printf("\nIncluding Signature...\n");
fflush(stdout);
fseek(header_fp,0l,SEEK_END);
! /* fprintf(header_fp,"\n\n--\n"); */
while(fgets(tmpbuffer,255,signature_fp))
fprintf(header_fp,"%s",tmpbuffer);
fclose(header_fp);
***************
*** 255,261 ****
fclose(signature_fp);
}
sprintf(tmpbuffer, uupc_rc_settings.editor, headname);
! printf("Invoking %s\n",tmpbuffer);
fflush(stdout);
termlib_reset();
system(tmpbuffer);
--- 255,261 ----
fclose(signature_fp);
}
sprintf(tmpbuffer, uupc_rc_settings.editor, headname);
! /* printf("Invoking %s\n",tmpbuffer); */
fflush(stdout);
termlib_reset();
system(tmpbuffer);
***************
*** 307,319 ****
headname);
}
change_sl2bsl(tmpbuffer);
! printf("\nInvoking %s\n",tmpbuffer);
fflush(stdout);
system(tmpbuffer);
if (strlen(uupc_rc_settings.mailsent) > 0) {
sprintf(tmpbuffer,"%s/%s",uupc_rc_settings.home,
uupc_rc_settings.mailsent);
! printf("\nSaving mail to %s\n",tmpbuffer);
fflush(stdout);
if (article_saver(TRUE,headname,tmpbuffer))
printf("\nCannot save letter to %s\n",tmpbuffer);
--- 307,319 ----
headname);
}
change_sl2bsl(tmpbuffer);
! /* printf("\nInvoking %s\n",tmpbuffer); */
fflush(stdout);
system(tmpbuffer);
if (strlen(uupc_rc_settings.mailsent) > 0) {
sprintf(tmpbuffer,"%s/%s",uupc_rc_settings.home,
uupc_rc_settings.mailsent);
! /* printf("\nSaving mail to %s\n",tmpbuffer); */
fflush(stdout);
if (article_saver(TRUE,headname,tmpbuffer))
printf("\nCannot save letter to %s\n",tmpbuffer);
***************
*** 331,337 ****
break;
case 'e': case 'E':
sprintf(tmpbuffer, uupc_rc_settings.editor, headname);
! printf("\nInvoking %s\n",tmpbuffer);
termlib_reset();
fflush(stdout);
system(tmpbuffer);
--- 331,337 ----
break;
case 'e': case 'E':
sprintf(tmpbuffer, uupc_rc_settings.editor, headname);
! /* printf("\nInvoking %s\n",tmpbuffer); */
termlib_reset();
fflush(stdout);
system(tmpbuffer);
***************
*** 429,435 ****
if (includesig) {
printf("\nIncluding Signature...\n");
fflush(stdout);
! fprintf(header_fp,"\n\n--\n");
while(fgets(tmpbuffer,255,signature_fp)) {
fprintf(header_fp,"%s",tmpbuffer); }
}
--- 429,435 ----
if (includesig) {
printf("\nIncluding Signature...\n");
fflush(stdout);
! /* fprintf(header_fp,"\n\n--\n"); */
while(fgets(tmpbuffer,255,signature_fp)) {
fprintf(header_fp,"%s",tmpbuffer); }
}
***************
*** 447,453 ****
printf("\nIncluding Signature...\n");
fflush(stdout);
fseek(header_fp,0l,SEEK_END);
! fprintf(header_fp,"\n\n--\n");
while(fgets(tmpbuffer,255,signature_fp))
fprintf(header_fp,"%s",tmpbuffer);
fclose(header_fp);
--- 447,453 ----
printf("\nIncluding Signature...\n");
fflush(stdout);
fseek(header_fp,0l,SEEK_END);
! /* fprintf(header_fp,"\n\n--\n"); */
while(fgets(tmpbuffer,255,signature_fp))
fprintf(header_fp,"%s",tmpbuffer);
fclose(header_fp);
***************
*** 457,463 ****
/* change / to \ */
change_sl2bsl(headname);
sprintf(tmpbuffer, uupc_rc_settings.editor, headname);
! printf("Invoking %s\n",tmpbuffer);
termlib_reset();
fflush(stdout);
system(tmpbuffer);
--- 457,463 ----
/* change / to \ */
change_sl2bsl(headname);
sprintf(tmpbuffer, uupc_rc_settings.editor, headname);
! /* printf("Invoking %s\n",tmpbuffer); */
termlib_reset();
fflush(stdout);
system(tmpbuffer);
***************
*** 495,501 ****
sizeof tmpbuffer);
/* sprintf(tmpbuffer,"inews %s", headname); */
change_sl2bsl(tmpbuffer);
! printf("Invoking %s\n",tmpbuffer);
fflush(stdout);
system(tmpbuffer);
#ifndef USE_NNTP
--- 495,501 ----
sizeof tmpbuffer);
/* sprintf(tmpbuffer,"inews %s", headname); */
change_sl2bsl(tmpbuffer);
! /* printf("Invoking %s\n",tmpbuffer); */
fflush(stdout);
system(tmpbuffer);
#ifndef USE_NNTP
***************
*** 524,530 ****
break;
case 'e': case 'E':
sprintf(tmpbuffer, uupc_rc_settings.editor, headname);
! printf("\nInvoking %s\n",tmpbuffer);
termlib_reset();
fflush(stdout);
system(tmpbuffer);
--- 524,530 ----
break;
case 'e': case 'E':
sprintf(tmpbuffer, uupc_rc_settings.editor, headname);
! /* printf("\nInvoking %s\n",tmpbuffer); */
termlib_reset();
fflush(stdout);
system(tmpbuffer);