Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/mail



perry%piermont.com@localhost wrote:

> >> > Make mail(1) invoke "sendmail" instead of "send-mail", this is
> >> > more standard.  Ok with christos.
> >> 
> >> Do you know why it invoked "sendmail" with argv[0] set to "send-mail"
> >> in the first place?
> >
> > No, why?  
> 
> Neither do I. I kind of think it would be a good idea to know before
> making such a change, but now that you've made it, you should research
> what the reason was so we can be sure the change wasn't a mistake. (I
> wouldn't revert it at this point, but you should track down the
> original purpose...)

Well, I agree we should confirm any changes before commit,
but in this case I don't think it's so difficult to confirm.
(only historical reason? can we see sendmail-2.x sources?)
---
 :
        /* find initial opMode */
        OpMode = MD_DELIVER;
        av = argv;
        p = strrchr(*av, '/');
        if (p++ == NULL)
                p = *av;
        if (strcmp(p, "newaliases") == 0)
                OpMode = MD_INITALIAS;
        else if (strcmp(p, "mailq") == 0)
                OpMode = MD_PRINT;
        else if (strcmp(p, "smtpd") == 0)
                OpMode = MD_DAEMON;
        else if (strcmp(p, "hoststat") == 0)
                OpMode = MD_HOSTSTAT;
        else if (strcmp(p, "purgestat") == 0)
                OpMode = MD_PURGESTAT;

#if defined(__osf__) || defined(_AIX3)
# define OPTIONS        
"A:B:b:C:cD:d:e:F:f:Gh:IiL:M:mN:nO:o:p:Q:q:R:r:sTtV:vX:x"
#endif /* defined(__osf__) || defined(_AIX3) */
 :
---
Izumi Tsutsui



Home | Main Index | Thread Index | Old Index