Article View: net.bugs.uucp
Article #48Bug in cntrl.c
From: utzoodecvaxccahplabskg
Date: Sun, 08 Aug 1982 12:30
Date: Sun, 08 Aug 1982 12:30
21 lines
1132 bytes
1132 bytes
Uucp's have never worked for us. They've always caused a Segmentation
Fault while uucico was running. Adb was no help, it just listed a
million sigtramps and aborts. I Finally tracked down the problem. The
work file contained only 5 fields. But uucico expected a file of 6
fields. I don't know if this is an error in the program that writes
the file or reads the file, but for robustness, I fixed the reader.
(As you can see below, it checks for "at least 5 items" and then goes
merrily along and uses 6).
Here's the fix. The added lines marked with <<<<'s.
Around line 150 or so in cntrl.c...
ASSERT(i > 4, "ARG COUNT - %d\n", i);
if (i < 6) <<<<<<<<
W_MODE = "0666"; <<<<<<<<
sprintf(msg, " %s %s %s %s %s %s",
W_FILE1, W_FILE2, W_USER,
W_OPTNS, W_DFILE, W_MODE);
Ken Greer
HP Labs
Technical Details
Message-ID:
<bnews.hplabs.621>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!decvax!cca!hplabs!kg Newsgroups: net.bugs.uucp Title: Bug in cntrl.c Article-I.D.: hplabs.621 Posted: Sun Aug 8 12:30:55 1982 Received: Tue Aug 10 00:46:57 1982 Subject: Bug in cntrl.c Date: Sun, 08 Aug 1982 12:30:55 +0000 Message-ID: <bnews.hplabs.621>