[net.bugs.uucp] conn.c file close bug

stein (12/16/82)

And YAUB (yet another uucp bug) -- this one is in uucico and affects
operation if multiple sites are to be called.  If the login sequence
for a site fails, the connect code in conn.c simply returns an error
status.  The device is never closed, however.  Since the exclusive open
bit is asserted on the open, attempts to open it for the following sites
fail.  Here is the fixed code (about line 550 in conn.c):

			if (altern == NULL) {
				logent("LOGIN", "FAILED");
				close(fn);		/* line added */
				return(FAIL);
			}

Seems to have done the trick for us.

				Mark Stein
				Fortune Systems
				{harpo,megatest,sri-unix}!fortune!stein