Allow for all entries of an application to be removed.

This commit is contained in:
Michael Lotz
2013-03-05 11:04:26 -05:00
committed by Ryan Leavengood
parent 0778e1477d
commit 67a4644454
+10
View File
@@ -177,6 +177,16 @@ Keyring::RemoveApplication(const char* signature, const char* path)
if (!fAccessible)
return B_NOT_ALLOWED;
if (path == NULL) {
// We want all of the entries for this signature removed.
status_t result = fApplications.RemoveName(signature);
if (result != B_OK)
return B_ENTRY_NOT_FOUND;
fModified = true;
return B_OK;
}
int32 count;
type_code type;
if (fApplications.GetInfo(signature, &type, &count) != B_OK)