GNU bug report logs - #23374
auth-source-macos-keychain-search pass in port only if it's provided

Previous Next

Package: emacs;

Reported by: "Jun Hao" <jun_hao <at> aol.com>

Date: Mon, 25 Apr 2016 15:12:01 UTC

Severity: normal

Tags: fixed

Fixed in version 26.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Jun Hao" <jun_hao <at> aol.com>
To: bug-gnu-emacs <at> gnu.org
Subject: auth-source-macos-keychain-search pass in port only if it's provided
Date: Mon, 25 Apr 2016 23:11:02 +0800
[Message part 1 (text/plain, inline)]
Hi,

When calling auth-source-search without port on OSX, current code will
bind port to "nil" and generate wrong command. E.g:

(auth-source-search :user "test") will yield command:

/usr/bin/security find-generic-password -g -a "test" -s "nil"

The correct one should be:

/usr/bin/security find-generic-password -g -a "test"

Please see attachment for this simple patch

Thanks - Jun

[0001-Pass-in-port-only-if-provided-by-caller.patch (text/x-patch, attachment)]

This bug report was last modified 8 years and 229 days ago.

Previous Next


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