Bug #2640

sendmail_include.sh::turn_m4_crank is buggy

Added by Jens Elkner over 6 years ago.

Status:NewStart date:2012-04-18
Priority:HighDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Difficulty:Bite-size Tags:needs-triage

Description

usr/src/cmd/svc/shell/sendmail_include.sh aka /lib/svc/share/sendmail_include.sh is bogus: it doesn't work for mail config files outside /etc/mail/cf/ and may overwrite /etc/mail/*.cf files even on error. E.g.:

cp /etc/mail/cf/cf/submit.mc /etc/mail/
svccfg -s sendmail-client:default \
    'setprop config/path_to_submit_mc = "/etc/mail/submit.mc"'
svccfg -s sendmail-client:default refresh
svcadm restart sendmail-client

ls -al /etc/mail/submit.cf
svcs -xv

sendmail_include.sh.patch Magnifier (1.43 KB) Jens Elkner, 2012-04-18 11:44 PM

Also available in: Atom