uucico trashes messages

Mark Stein stein at fortune.UUCP
Mon Feb 11 14:09:04 AEST 1985


> I seem to fairly frequently get UUCP messages with uucico garbage strewn
> through them. 

I have seen this happen when uucico can't open the AUDIT file for writing
out debug messages (those lines which magically appeared in your mail
messages).  

What's happening is that uucico, when started up in slave mode, always 
attempts to open $SPOOL/AUDIT (/usr/spool/uucp/AUDIT) as stderr.  
This is attempted by first closing stderr, then doing an fopen on
AUDIT.  Too bad that fopen's return code is not checked!  So, when
the data file is later opened, it returns file descriptor 2, and
all debug output being written to stderr gets into the data.  (Some
versions do an 'freopen' call instead of the flose/fopen pair.)

The no-source fix is to make sure that $SPOOL/AUDIT exists and is
writable by user uucp (or whatever user name your copy of uucico
is setuid'd to).

The proper fix is to modify cico.c to check the return code when it
opens RMTDEBUG.  And then to take appropriate action if it failed.

			Mark Stein
			Fortune Systems
			ihnp4!fortune!stein



More information about the Comp.os.eunice mailing list