diff options
author | Bo Anderson <mail@boanderson.me> | 2024-02-17 23:34:54 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-04-01 15:38:20 -0700 |
commit | 9032bcad82f45a403e4a8de86e1fcb4bfd1ab282 (patch) | |
tree | e8b80e6e390b0ec29a03cbc56df07b4522496c8f /contrib | |
parent | 9abe31f5f161be4d69118bdfae00103cd6efa510 (diff) | |
download | git-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>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/credential/osxkeychain/git-credential-osxkeychain.c | 3 |
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); |