Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Fix parsing bug where SYSTEM_TRUSTED and SECONDARY_TRUSTED were always parsed as true #60

Merged
merged 1 commit into from
Jun 29, 2018

Conversation

frasercadger
Copy link

SYSTEM_TRUSTED and SECONDARY_TRUSTED are being incorrectly parsed, so that they are always set to "1".

For instance, if d.getVar("IMA", True) or d.getVar("MODSIGN", True) looks as though it should return false, if both IMA and MODSIGN != "0". However, SYSTEM_TRUSTED is set to "1" instead of "0".

Doing an explicit check of '== 1' fixes this, at the expense of looking ugly. I have tested the opposite; making sure that when the result should be true, the variables are set to 1, and this works as before.

Copy link
Owner

@jiazhang0 jiazhang0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! I will check all other places.

@jiazhang0 jiazhang0 merged commit 086aa9d into jiazhang0:master Jun 29, 2018
@frasercadger
Copy link
Author

Thanks. I didn't think to check other places, as this is the only place it affected me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants