fix for article.c:117:No such file or directory: bad Xref Xref: (site)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




With multiple, disjoint servers, it possible that xrefRewriteCopy will
have gobbled up all of the Xref's, which will cause crosspost to
fail because it gets a Xref line that looks like Xref: host.com \n passed
to it.


Here is a fix...

*** article.c.orig      Fri Aug 29 21:15:08 1997
--- article.c   Fri Aug 29 21:41:46 1997
***************
*** 649,657 ****
                                {
                                        char xref[sizeof bfr];
                                        cc = xrefRewriteCopy(CurrentScfg, bfr, xref, TRUE);
!                                       xref[cc++] = '\r';
!                                       xref[cc++] = '\n';
!                                       art_stack = strnStackAdd (art_stack, xref, cc);
                                } else
                                        art_stack = strnStackAdd (art_stack, bfr, cc);
                        }
--- 649,659 ----
                                {
                                        char xref[sizeof bfr];
                                        cc = xrefRewriteCopy(CurrentScfg, bfr, xref, TRUE);
!                                       if (strchr(xref+9,':')) { /* are there any articles? */
!                                               xref[cc++] = '\r';
!                                               xref[cc++] = '\n';
!                                               art_stack = strnStackAdd (art_stack, xref, cc);
!                                       }
                                } else
                                        art_stack = strnStackAdd (art_stack, bfr, cc);
                        }

-- 
Aaron Nabil
nabil@teleport.com


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux