From: Bo Anderson Date: Sat, 17 Feb 2024 23:34:54 +0000 (+0000) Subject: osxkeychain: erase all matching credentials X-Git-Tag: v2.45.0-rc0~5^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9032bcad82f45a403e4a8de86e1fcb4bfd1ab282;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- 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);