Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site nbs-amrf.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!ihnp4!houxm!hogpc!houti!ariel!vax135!floyd!cmcl2!seismo!rlgvax!cvl!umcp-cs!nbs-amrf!libes From: libes@nbs-amrf.UUCP Newsgroups: net.bugs Subject: netnews under Eunice - bug fix Message-ID: <286@nbs-amrf.UUCP> Date: Mon, 21-May-84 15:10:54 EDT Article-I.D.: nbs-amrf.286 Posted: Mon May 21 15:10:54 1984 Date-Received: Fri, 25-May-84 00:47:32 EDT Organization: National Bureau of Standards Lines: 38 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