Accumulate the app access flags instead of replacing them.
Before, each permanently granted access flag would overwrite the previously granted flag, causing the dialog to come up whenever the operation was changed.
This commit is contained in:
committed by
Ryan Leavengood
parent
a2f279870c
commit
ee83472042
@@ -643,7 +643,7 @@ KeyStoreServer::_ValidateAppAccess(Keyring& keyring, const app_info& appInfo,
|
||||
|
||||
appMessage.MakeEmpty();
|
||||
appMessage.AddString("path", path.Path());
|
||||
appMessage.AddUInt32("flags", accessFlags);
|
||||
appMessage.AddUInt32("flags", appFlags | accessFlags);
|
||||
appMessage.AddString("checksum", checksum);
|
||||
|
||||
keyring.RemoveApplication(appInfo.signature, path.Path());
|
||||
|
||||
Reference in New Issue
Block a user