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:
Michael Lotz
2013-03-05 11:04:45 -05:00
committed by Ryan Leavengood
parent a2f279870c
commit ee83472042
+1 -1
View File
@@ -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());