diff options
author | Bo Anderson <mail@boanderson.me> | 2024-02-18 00:34:54 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-04-02 00:38:20 +0200 |
commit | 9032bcad82f45a403e4a8de86e1fcb4bfd1ab282 (patch) | |
tree | e8b80e6e390b0ec29a03cbc56df07b4522496c8f | |
parent | osxkeychain: replace deprecated SecKeychain API (diff) | |
download | git-9032bcad82f45a403e4a8de86e1fcb4bfd1ab282.tar.xz git-9032bcad82f45a403e4a8de86e1fcb4bfd1ab282.zip |
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.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); |