Bug 947

Summary: lib/eventlog/eventlog.c uses _PATH_SUDO_SENDMAIL unconditionally
Product: Sudo Reporter: torcontact1
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.9.4   
Hardware: PC   
OS: Linux   

Description torcontact1 2020-11-30 13:01:05 MST
Hi!

Sudo 1.9.4 can no longer be built without ‘--with-sendmail’ or with ‘--without-sendmail’:

./eventlog.c:94:5: error: ‘_PATH_SUDO_SENDMAIL’ undeclared here (not in a function); did you mean ‘_PATH_SENDMAIL’?
     _PATH_SUDO_SENDMAIL, /* mailerpath */
     ^~~~~~~~~~~~~~~~~~~
     _PATH_SENDMAIL
make[1]: *** [Makefile:218: eventlog.lo] Error 1

Like plugins/sudoers/defaults.c, lib/eventlog/eventlog.c should guard against this with an #ifdef _PATH_SUDO_SENDMAIL.

Thanks for sudo!

T
Comment 1 Todd C. Miller 2020-11-30 13:19:08 MST
Thanks for the report, fixed by https://www.sudo.ws/repos/sudo/rev/41db1aad85bb
Comment 2 Todd C. Miller 2020-12-17 15:00:12 MST
Fixed in sudo 1.9.4p1