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

@@ -20,10 +20,11 @@
  */
 
 /*
  * 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,11 +1296,14 @@
 
                 if (satbility && s == 0)
                         satisfiable = B_TRUE;
         }
 
-        return (!satbility || satisfiable ? 0 : -1);
+        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