Astolaf.314
net.bugs.v7
utzoo!decvax!harpo!ihnss!ihps3!stolaf!sys
Wed Apr 28 14:52:46 1982
v7 mail bug
This bug may have already been reported, but here goes anyway.
We noticed problems when mailing to remote systems which weren't
in our l.sys file.  mail (stock v7 mail, not the Berkekey interface)
would call uux and ignore the return status when uux blew up, leaving
your letter at the end of some pipe, rather than in dead.letter.

The fix is at the bottom of the sendrmt() routine, change

       pclose(rmf);
       exit(0);
to
       exit(pclose(rmf)>>8);
the shift gets the uux return status into the low bits, thus
passing them back to the parent via exit.

If anyone has a better fix, I'd like to see it.

                                               Vic Lee
                                               stolaf!vtl

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.