ctc-oss / fapolicy-analyzer

Tools to assist with the configuration and management of fapolicyd.
https://ctc-oss.github.io/fapolicy-analyzer
GNU General Public License v3.0
12 stars 5 forks source link

Redeploy Divide by 0 bug fix #873

Closed egbicker closed 1 year ago

egbicker commented 1 year ago

Fixes a divide by zero error after deploying changes that remove all entries from the trust database.

Closes #829

egbicker commented 1 year ago

This eliminates the divide by zero error when following the steps to reproduce the issue.

@jw3 There is another potential issue I found where if you add entries to the ATDB then remove some of them before deploying the loading status bar will have a larger numerator than denominator, something like "3/2 files" but this goes away upon a successful deploy.

jw3 commented 1 year ago

There is another potential issue I found where if you add entries to the ATDB then remove some of them before deploying the loading status bar will have a larger numerator than denominator, something like "3/2 files" but this goes away upon a successful deploy.

You can add an issue for that one, with reproducing steps. No need to fix here.