ANU News Patch Patch ID: 940523_newsrc.c!bailey@genetics.upenn.edu Date: 23-May-1994 Author: Charles Bailey bailey@genetics.upenn.edu News Version: 6.1beta9 News Files: NewsRC.C Description: Searches for separate News_Manager:NewsRC_LocalDB.Template file for local database if current session is using local database and News_Manager:NewsRC.Template does not exist or is for NNTP client. Replaces: 921223_newsrc.c!bailey@genetics.upenn.edu for use with version 6.1beta9. 921223_newsrc.c!bailey@genetics.upenn.edu remains current for use with versions 6.1beta5 through 6.1beta8. *** newsrc.c --- newsrc_new.c ************** *** 46,48 **-- **/ --- 46,51 ----- + ** V6.1b9 23-May-1994 bailey@genetics.upenn.edu + ** - use News_Manager:NewsRC_LocalDB.Template if NewsRC.Template is for + ** NNTP client and current session is using local database **-- **/ ************** *** 186,191 delete_file_versions("SYS$LOGIN:NEWS_GROUPS.REGISTER"); } else { sysprv(); if (!(newsrc = fopen("NEWS_MANAGER:NEWSRC.TEMPLATE","r","mbc=40"))) { nosysprv(); --- 189,199 ----- delete_file_versions("SYS$LOGIN:NEWS_GROUPS.REGISTER"); } else { + /* Modified code to look for separate template file for local + * database if !nntp_client and News_Manager:NewsRC.Template + * does not exist or is for nntp client. + * 11-OCT-1992 C. Bailey bailey@genetics.upenn.edu + */ sysprv(); if (!(newsrc = fopen("NEWS_MANAGER:NEWSRC.TEMPLATE","r","mbc=40"))) { if (!nntp_client && ************** *** 188,196 else { sysprv(); if (!(newsrc = fopen("NEWS_MANAGER:NEWSRC.TEMPLATE","r","mbc=40"))) { ! nosysprv(); ! news_free(ca); ! return(0); } first_time_user = 1; nosysprv(); --- 196,223 ----- */ sysprv(); if (!(newsrc = fopen("NEWS_MANAGER:NEWSRC.TEMPLATE","r","mbc=40"))) { ! if (!nntp_client && ! (newsrc = fopen("NEWS_MANAGER:NEWSRC_LOCALDB.TEMPLATE","r", ! "mbc=40"))) ; /* skip over free-and-return */ ! else { ! nosysprv(); ! free(ca); ! return(0); ! } ! } ! if (!nntp_client) { ! if ((in_line = fgetl(newsrc))) { ! if (*in_line == '~') { ! fclose(newsrc); ! if (!(newsrc = fopen("NEWS_MANAGER:NEWSRC_LOCALDB.TEMPLATE","r", ! "mbc=40"))) { ! nosysprv(); ! free(ca); ! return(0); ! } ! } ! else rewind(newsrc); ! } } first_time_user = 1; nosysprv(); *** patchlist.h;-1 --- patchlist.h ************** *** 1,1 =+=+= End =+=+= --- 1,2 ----- + 940523_newsrc.c!bailey@genetics.upenn.edu =+=+= End =+=+=