Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site oddjob.UChicago.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!oddjob!matt From: matt@oddjob.UChicago.UUCP (Matt Crawford) Newsgroups: net.bugs.4bsd Subject: sendmail ignores 2nd and subsequent "-oMabcd" flags Message-ID: <612@oddjob.UChicago.UUCP> Date: Tue, 19-Feb-85 17:22:47 EST Article-I.D.: oddjob.612 Posted: Tue Feb 19 17:22:47 1985 Date-Received: Fri, 22-Feb-85 07:11:58 EST Reply-To: matt@oddjob.UUCP (Matt Crawford) Organization: U. Chicago: Astronomy & Astrophysics Lines: 78 Subject: sendmail ignores 2nd and subsequent "-oMabcd" flags Index: usr.lib/sendmail/src/readcf.c 4.2BSD Description: When sendmail is given a command-line flag "-oMxXYZ" it calls setoption() with sticky == TRUE. This means only one such flag will have an effect. Repeat-By: Tweak your rmail.c to pass the flags "-oMrUUCP -oMsNEIGHBOR". Only the first will be honored. Or, more directly, sendmail -d37.5 -oMrUUCP -oMsNBR-HOST ... The second -oM.. flag reports "(ignored)" Fix: (Your line numbers will be different) *** /tmp/,RCSt1020190 Mon Feb 18 18:20:34 1985 --- readcf.c Mon Feb 18 18:15:17 1985 *************** *** 45,51 ** Side Effects: ** Builds several internal tables. */ ! /* $Header: readcf.c,v 1.2 84/12/09 17:14:39 bin Exp $ * $Log: readcf.c,v $ * Revision 1.2 84/12/09 17:14:39 bin * Fix per K. Muller ... --- 45,51 ----- ** Side Effects: ** Builds several internal tables. */ ! /* $Header: readcf.c,v 1.3 85/02/18 18:11:08 bin Exp $ * $Log: readcf.c,v $ * Revision 1.3 85/02/18 18:11:08 bin * In setoption(): pseudo-option 'M' should never be sticky! *************** *** 47,52 */ /* $Header: readcf.c,v 1.2 84/12/09 17:14:39 bin Exp $ * $Log: readcf.c,v $ * Revision 1.2 84/12/09 17:14:39 bin * Fix per K. Muller ... * ... --- 47,56 ----- */ /* $Header: readcf.c,v 1.3 85/02/18 18:11:08 bin Exp $ * $Log: readcf.c,v $ + * Revision 1.3 85/02/18 18:11:08 bin + * In setoption(): pseudo-option 'M' should never be sticky! + * That would prevent, e.g., " -oMrUUCP -oMsneighbor ". + * * Revision 1.2 84/12/09 17:14:39 bin * Fix per K. Muller ... * ... *************** *** 633,639 else if (tTd(37, 1)) printf("\n"); #endif DEBUG ! if (sticky) setbitn(opt, StickyOpt); if (getruid() == 0) --- 637,643 ----- else if (tTd(37, 1)) printf("\n"); #endif DEBUG ! if (sticky && opt != 'M') /* 'M' should never be sticky ! */ setbitn(opt, StickyOpt); if (getruid() == 0) _____________________________________________________ Matt University crawford@anl-mcs.arpa Crawford of Chicago ihnp4!oddjob!matt