🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.eunice
Article #85

netnews under Eunice - bug fix

#85
From: libes
Date: Mon, 21 May 1984 19:04
38 lines
1981 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
Technical Details
Message-ID: <285@nbs-amrf.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!hogpc!houti!ariel!vax135!floyd!cmcl2!seismo!rlgvax!cvl!umcp-cs!nbs-amrf!libes

Show Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!hogpc!houti!ariel!vax135!floyd!cmcl2!seismo!rlgvax!cvl!umcp-cs!nbs-amrf!libes
From: libes@nbs-amrf.UUCP
Newsgroups: net.eunice
Subject: netnews under Eunice - bug fix
Message-ID: <285@nbs-amrf.UUCP>
Date: Mon, 21-May-84 15:04:48 EDT
Article-I.D.: nbs-amrf.285
Posted: Mon May 21 15:04:48 1984
Date-Received: Sat, 26-May-84 09:50:16 EDT
Organization: National Bureau of Standards
Lines: 38