Xref patch for 2.10.3
hokey at plus5.UUCP
hokey at plus5.UUCP
Fri Mar 14 06:34:27 AEST 1986
What follows is an un-blessed patch to rn4.3. All I can say is it seems
to work here.
*** bits.c- Sun Mar 9 12:57:30 1986
--- bits.c Sun Mar 9 15:49:36 1986
***************
*** 386,391
* to change the system name as known to inews, rn will still do
* Xrefs correctly--each article need only match itself to be valid.
*/
if (inews_site == Nullch || strNE(tmpbuf,inews_site)) {
char *t;
--- 386,392 -----
* to change the system name as known to inews, rn will still do
* Xrefs correctly--each article need only match itself to be valid.
*/
+ /* 2.10.3 doesn't have a Relay-Version: line. Use Path: instead */
if (inews_site == Nullch || strNE(tmpbuf,inews_site)) {
char *t;
***************
*** 391,398
if (inews_site != Nullch)
free(inews_site);
! rver_buf = fetchlines(artnum,RVER_LINE);
! if ((t = instr(rver_buf,"; site ")) == Nullch)
inews_site = savestr(nullstr);
else {
char new_site[128];
--- 392,399 -----
if (inews_site != Nullch)
free(inews_site);
! rver_buf = fetchlines(artnum,PATH_LINE);
! if (index(rver_buf,'!') == Nullch)
inews_site = savestr(nullstr);
else {
char new_site[128];
***************
*** 397,403
else {
char new_site[128];
! cpytill(new_site,t + 7,'.');
inews_site = savestr(new_site);
}
if (strNE(tmpbuf,inews_site)) {
--- 398,404 -----
else {
char new_site[128];
! cpytill(new_site,rver_buf,'!');
inews_site = savestr(new_site);
}
if (strNE(tmpbuf,inews_site)) {
--
Hokey ..ihnp4!plus5!hokey
314-725-9492
More information about the Comp.sources.bugs
mailing list