OpenSolaris

Printable Version Enter a New Search
Bug ID 6813144
Synopsis 6805730 broke smf_kill_contract()
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:smf
Keywords
Responsible Engineer Daniel Price
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_111
Fixed In snv_111
Release Fixed solaris_nevada(snv_111)
Related Bugs 6805730
Submit Date 4-March-2009
Last Update Date 25-March-2009
Description
Gatekeepers reported:

> ===========================================================================
> Mar  4 09:20:51 elpaso svc.startd[100004]: [ID 652011 daemon.warning]
> svc:/network/smtp:sendmail: Method "/lib/svc/method/smtp-sendmail stop 72"
> failed with exit status 1.
> ============================================================================

The root cause here is that the call to expr which I added in
smf_kill_contract is unprotected by single quotes.  This causes the
call to fail.  However, in the vast majority of cases, the script
plows on and runs succesfully; since in nearly all cases, the
service successfully goes offline, I did not see this in my testing.
Clearly I didn't do enough to trace what was happening which doing
testing.  So this is just really broken.  Sorry.
Work Around
N/A
Comments
N/A