Enhancement to rnews 2.10.2 sys:F option
Jerry Aguirre
jerry at oliveb.UUCP
Sat Aug 17 04:52:59 AEST 1985
This enhancement allows a default for the :F: option is the news 2.10.2
sys file. It works like the default uux command. I find that it keeps
the sys file shorter with less chance of errors.
A sys line of the form:
remotesys:net,fa,mod,to.remotesys:F
Will cause the article pathname to be appended to the file:
BATCHDIR/remotesys
This is the pathname that the sendbatch and csendbatch scripts expect.
You can still override this by explicitly specifying the path.
*** ifuncs.orig Tue Sep 18 18:13:47 1984
--- ifuncs.c Fri Aug 2 12:40:57 1985
***************
*** 155,161
sprintf(TRANS, "%s/%s/%s", logdir(HOME), BATCHDIR, sp->s_xmit);
ofp = fopen(TRANS, "a");
#else
! ofp = fopen(sp->s_xmit, "a");
#endif
if (ofp == NULL)
! xerror("Cannot append to %s", sp->s_xmit);
fprintf(ofp, "%s\n", firstbufname);
fclose(ofp);
--- 170,180 -----
sprintf(TRANS, "%s/%s/%s", logdir(HOME), BATCHDIR, sp->s_xmit);
ofp = fopen(TRANS, "a");
#else
! if (*sp->s_xmit == '\0') {
! sprintf(bfr, "%s/%s", BATCHDIR, sp->s_name);
! ptr = bfr;
! } else ptr = sp->s_xmit;
! ofp = fopen(ptr, "a");
#endif
if (ofp == NULL)
! xerror("Cannot append to %s", ptr);
fprintf(ofp, "%s\n", firstbufname);
fclose(ofp);
--------
Jerry Aguirre @ Olivetti ATC
{hplabs|fortune|idi|ihnp4|tolerant|allegra|tymix}!oliveb!jerry
More information about the Net.bugs
mailing list