Print this page
7387 SMF is fast and loose with require_any/service dependencies
Reviewed by: Dan McDonald <danmcd@omniti.com>

*** 20,29 **** --- 20,30 ---- */ /* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015, Syneto S.R.L. All rights reserved. + * Copyright 2016 RackTop Systems. */ /* * graph.c - master restarter graph engine *
*** 1295,1305 **** if (satbility && s == 0) satisfiable = B_TRUE; } ! return (!satbility || satisfiable ? 0 : -1); } /* * An optional_all dependency only considers elements which are configured, * enabled, and not in maintenance. If any are unsatisfied, then the dependency --- 1296,1309 ---- if (satbility && s == 0) satisfiable = B_TRUE; } ! if (!satbility) ! return (0); ! ! return (satisfiable ? 0 : -1); } /* * An optional_all dependency only considers elements which are configured, * enabled, and not in maintenance. If any are unsatisfied, then the dependency