sendmail: from Vladimir:
Here comes the third part of compatibility patch for sendmail. * Introduced new safe_getdomainname() -- will it be useful? * Fixed SEGV if sender address is missed. Should snoop for sender address in mail headers? * More compat: use HOSTNAME instead of HOST when no server is explicitly specified. * crond: fixed mail recipient address. function old new delta safe_getdomainname - 56 +56 sendgetmail_main 1937 1946 +9 grep_file 846 850 +4 crond_main 1423 1425 +2 xstrtoull_range_sfx 295 296 +1 utoa_to_buf 110 108 -2 passwd_main 1053 1049 -4 sv_main 1234 1228 -6 parse_expr 841 833 -8 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/4 up/down: 72/-20) Total: 52 bytes
This commit is contained in:
@ -839,7 +839,7 @@ static void RunJob(const char *user, CronLine *line)
|
||||
|
||||
if (mailFd >= 0) {
|
||||
line->cl_MailFlag = 1;
|
||||
fdprintf(mailFd, "To: %s\nSubject: cron: %s\n\n", user,
|
||||
fdprintf(mailFd, "To: %s\nSubject: cron: %s\n\n", line->cl_MailTo,
|
||||
line->cl_Shell);
|
||||
line->cl_MailPos = lseek(mailFd, 0, SEEK_CUR);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user