Fix empty mailto (-m "") handling: somehow I missed all checks but the first,
hence output would be written to the wrong filehandle. Submitted by: reg Approved by: yar (implicit) MFC after: ASAP Pointy hat to: marck
This commit is contained in:
parent
6f04a5d9f3
commit
fb63e4aaab
@ -468,13 +468,15 @@ child_process(e, u)
|
||||
else
|
||||
mailto = usernm;
|
||||
}
|
||||
if (mailto && *mailto == '\0')
|
||||
mailto = NULL;
|
||||
|
||||
/* if we are supposed to be mailing, MAILTO will
|
||||
* be non-NULL. only in this case should we set
|
||||
* up the mail command and subjects and stuff...
|
||||
*/
|
||||
|
||||
if (mailto && *mailto != '\0') {
|
||||
if (mailto) {
|
||||
register char **env;
|
||||
auto char mailcmd[MAX_COMMAND];
|
||||
auto char hostname[MAXHOSTNAMELEN];
|
||||
|
Loading…
x
Reference in New Issue
Block a user