http://defect.opensolaris.org/bz/show_bug.cgi?id=10156





--- Comment #3 from amaguire <alan.maguire at sun.com>  2009-07-23 06:18:49 ---
(In reply to comment #2)
> For SMF services, we do not validate that the service exists.  We only 
> validate
> that the string is a valid FMRI.  (This is similar to our validating of files,
> where we don't check if the file exists, but just that path is absolute).
> 
> If this validation scheme for SMF services is to continue, then we cannot
> ensure that svcs-enable and svcs-disable do not contain duplicates.  A user
> could put "sendmail" in one and "smtp:sendmail" in the other.

a bit messy I know, but how about expanding FMRIs where possible for comparison
and doing full string matches where it's not (i.e. if the FMRI expansion fails,
indicating the named service instance doesn't presently exist)?

It's probably not a big deal since the GUI will likely restrict selection
of enable/disable services such that the lists cannot overlap, but I guess if
it is reasonably easy to solve at the library level, we should give it a go.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

Reply via email to