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>
Bo Anderson committed
Feb 17, 2024 at 23:34 UTC
9032bcad82f45a403e4a8de86e1fcb4bfd1ab282
1 file changed
+2
-1
contrib/credential/osxkeychain/git-credential-osxkeychain.c
+2
-1
@@ -182,7 +182,8 @@ static OSStatus delete_internet_password(void)
182
if (!protocol || !host)
183
return -1;
184
185
- attrs = CREATE_SEC_ATTRIBUTES(NULL);
185
+ attrs = CREATE_SEC_ATTRIBUTES(kSecMatchLimit, kSecMatchLimitAll,
186
+ NULL);
187
result = SecItemDelete(attrs);
188
CFRelease(attrs);
189