GNU bug report logs - #68376
30.0.50; auth-source-search doesn't support numeric port on macOS

Previous Next

Package: emacs;

Reported by: "Kirill A. Korinsky" <kirill <at> korins.ky>

Date: Thu, 11 Jan 2024 00:58:01 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 30.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: "Kirill A. Korinsky" <kirill <at> korins.ky>
Cc: 68376 <at> debbugs.gnu.org
Subject: bug#68376: 30.0.50; auth-source-search doesn't support numeric port on macOS
Date: Thu, 11 Jan 2024 11:12:17 +0100
[Message part 1 (text/plain, inline)]
"Kirill A. Korinsky" <kirill <at> korins.ky> writes:

> Greeting,

Hi Kirill,

> I'd like to share a bug with simple reproducer:
>
> (auth-source-search :host "some.host" :port "123" :user "user")
> (auth-source-search :host "some.host" :port 123 :user "user")
>
> The first line works as expected, and the second one fails as:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp 123)
>   call-process("/usr/bin/security" nil t nil "find-generic-password"
> "-g" "-c" "some.host" "-a" "user" "-s" 123)

call-process requires strings as arguments. This must be converted
in auth-source-macos-keychain-search-items if needed.

Could you, please, check whether the appended patch works? I cannot test
myself, I have no macOS machine.

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

This bug report was last modified 1 year and 188 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.