ACL: Fix transitions check & a '1' in RefName
In determining which access pattern has precedence, the 1st check is
which pattern is closer via Levenshtein distance. The 2nd criteria is
if they differ on finite vs inifite. The 3rd criteria is based on
number of transitions in the pattern, where it is supposed to be the
pattern with the greatest number of transitions having precedence. The
check of using the number of transitions had the check reversed. This
caused the pattern with the fewest number of transitions to have
precedence.
When determining the Levenshtein distance of a glob style pattern the
trailing '*' would be changed to a '1'. The issue with doing this is
that it could cause a different access pattern to take precedence if a
RefName contained a '1' character as that would cause the Levenshtein
distance to become decreased by one.
Change-Id: Ibdcd483c303d24565ef43001b3831f6463c2ed8f
Signed-off-by: John L. Villalovos <john.l.villalovos@intel.com>
2 files changed