aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBo Anderson <mail@boanderson.me>2024-02-17 23:34:54 +0000
committerJunio C Hamano <gitster@pobox.com>2024-04-01 15:38:20 -0700
commit9032bcad82f45a403e4a8de86e1fcb4bfd1ab282 (patch)
treee8b80e6e390b0ec29a03cbc56df07b4522496c8f
parent9abe31f5f161be4d69118bdfae00103cd6efa510 (diff)
downloadgit-9032bcad82f45a403e4a8de86e1fcb4bfd1ab282.tar.gz
osxkeychain: erase all matching credentials
Other credential managers erased all matching credentials, as indicated by a test case that osxkeychain failed: 15 - helper (osxkeychain) erases all matching credentials Signed-off-by: Bo Anderson <mail@boanderson.me> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--contrib/credential/osxkeychain/git-credential-osxkeychain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/credential/osxkeychain/git-credential-osxkeychain.c b/contrib/credential/osxkeychain/git-credential-osxkeychain.c
index dc294ae944..e9cee3aed4 100644
--- a/contrib/credential/osxkeychain/git-credential-osxkeychain.c
+++ b/contrib/credential/osxkeychain/git-credential-osxkeychain.c
@@ -182,7 +182,8 @@ static OSStatus delete_internet_password(void)
if (!protocol || !host)
return -1;
- attrs = CREATE_SEC_ATTRIBUTES(NULL);
+ attrs = CREATE_SEC_ATTRIBUTES(kSecMatchLimit, kSecMatchLimitAll,
+ NULL);
result = SecItemDelete(attrs);
CFRelease(attrs);