git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
2897269
Branches
Tags
master
keks-overlay.git
sys-process
cronie
files
cronie-undo-mailfrom.diff
cronie reverting patch that broke mails to users
Hanno Böck
commited
2897269
at 2024-01-15 21:32:06
cronie-undo-mailfrom.diff
Blame
History
Raw
diff -Naurp a/src/do_command.c b/src/do_command.c --- a/src/do_command.c 2024-01-15 16:26:13.997192070 +0100 +++ b/src/do_command.c 2024-01-15 16:26:26.246807360 +0100 @@ -471,9 +471,7 @@ static int child_process(entry * e, char if (MailCmd[0] == '\0') { int len; - /* Use empty envelope address with default mailfrom */ - len = snprintf(mailcmd, sizeof mailcmd, MAILFMT, MAILARG, - mailfrom == e->pwd->pw_name ? "<>" : mailfrom); + len = snprintf(mailcmd, sizeof mailcmd, MAILFMT, MAILARG, mailfrom); if (len < 0) { fprintf(stderr, "mailcmd snprintf failed\n"); (void) _exit(ERROR_EXIT);