Thread View: net.bugs
1 messages
1 total messages
Started by libes
Mon, 21 May 1984 19:10
netnews under Eunice - bug fix
Author: libes
Date: Mon, 21 May 1984 19:10
Date: Mon, 21 May 1984 19:10
38 lines
1991 bytes
1991 bytes
This is in response to t4test!chip's complaint about multiple postings not
working under Eunice due to link(). This was exactly the behavior on our
system (running B 2.10 Beta 3/9/83). I'm not that concerned about disk
space so I changed the link to a cp. Works fine.
Forgive me for posting this to multiple newsgroups (one at a time!).
Obviously the people who have this bug will miss it if I didn't do this.
Here is the change to inews.c:
522a523,524
> struct stat dummy;
>
524,529c526,540
< if (link(ARTICLE, bfr) == 0) break;
< e = errno; /* keep log from clobbering it */
< fprintf(stderr, "Cannot install article as %s\n", bfr);
< log("Cannot install article as %s", bfr);
< if (e != EEXIST) {
< log("Link into %s failed, errno %d, check dir permissions.", bfr, e);
---
> if (stat(bfr,&dummy) == -1) {
> #ifdef VMS
> char system_arg[BUFSIZ];
>
> /* copy since VMS doesn't do links - DEL */
> sprintf(system_arg,"/bin/cp %s %s",ARTICLE,bfr);
> if (0 == (e = system(system_arg))) break;
> #else
> if (link(ARTICLE, bfr) == 0) break;
> e = errno; /* keep log from clobbering it */
> #endif VMS
> fprintf(stderr, "Cannot install article as %s\n", bfr);
> log("Cannot install article as %s", bfr);
> log("Link into %s failed, err=%d, check dir perm",
> bfr, e);
Don Libes {seismo,allegra}!umcp-cs!nbs-amrf!libes
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads