From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#67937: 30.0.50; auth-source-pass relies on epa-file being enabled Date: Fri, 22 Nov 2024 16:59:33 +0100 Message-ID: <87frnjz2ca.fsf@gmx.de> References: <8734vwq06i.fsf@aarsen.me> <871qbdmagw.fsf@gmx.de> <87bkahlzzp.fsf@neverwas.me> <868r5lszxm.fsf@aarsen.me> <87plywlus1.fsf@gmx.de> <86r0jcn100.fsf@aarsen.me> <87h6k8kk4l.fsf@gmx.de> <867cl3kh4p.fsf@aarsen.me> <83a5pzde0a.fsf@gnu.org> <86h6k77qco.fsf@aarsen.me> <87v88nk5md.fsf@gmx.de> <86y1dj4l71.fsf@aarsen.me> <87le9jjyu6.fsf@gmx.de> <8734vlflpf.fsf@aarsen.me> <87bka9ic18.fsf@gmx.de> <86wmgz769s.fsf@aarsen.me> <871pz69go8.fsf@gmx.de> <86h6814ydo.fsf@aarsen.me> <87msht938s.fsf@gmx.de> <868qtcto2h.fsf@aarsen.me> <87zflr7jpq.fsf@gmx.de> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14961"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: damien@cassou.me, Eli Zaretskii , 67937@debbugs.gnu.org, jp@neverwas.me To: Arsen =?UTF-8?Q?Arsenovi=C4=87?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 22 17:00:38 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tEW5G-0003jt-KD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Nov 2024 17:00:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEW4s-0007Pa-E7; Fri, 22 Nov 2024 11:00:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEW4o-0007OT-VC for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 11:00:11 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEW4g-0007NW-9u for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 11:00:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=HJRSPo2EWOZgh4k1J9LS2cAVUti1qIE/VzqfDwkqLcQ=; b=ZCXGBauSiUOoElohSeA/8dgX700PIR2RuayhFVD95uEJ0j75tyh2JH43RYREq00D89gfRlbGT+9KyasSa5OJebse6NEFkyZc9BoD1PYVv7TQGwwed7TqHrHQC9fpFsztCuydGufXogDd2GZLlojfhsn5SGiPF0sAsmNl6D8pwCPluOXGuAgaWbsheYQLEKQsJ3WSgI1kQfZd/TEzBdntQCiZws0Ge07KLwH/l2+gvbdd4d7GyWjznQOgTpzNtt7dOMM10Bf6N5TT6ASWAy71kOOZvWT3SdGXgt7j0GTTROEndwPOAMg1YI2UHEvTcUuIrLDGyHbY/50KwR7fd3+wDg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEW4g-0000x6-3s for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 11:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Nov 2024 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67937 X-GNU-PR-Package: emacs Original-Received: via spool by 67937-submit@debbugs.gnu.org id=B67937.17322911933613 (code B ref 67937); Fri, 22 Nov 2024 16:00:02 +0000 Original-Received: (at 67937) by debbugs.gnu.org; 22 Nov 2024 15:59:53 +0000 Original-Received: from localhost ([127.0.0.1]:55228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEW4W-0000wD-TR for submit@debbugs.gnu.org; Fri, 22 Nov 2024 10:59:53 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:39899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEW4S-0000vx-BM for 67937@debbugs.gnu.org; Fri, 22 Nov 2024 10:59:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1732291176; x=1732895976; i=michael.albinus@gmx.de; bh=HJRSPo2EWOZgh4k1J9LS2cAVUti1qIE/VzqfDwkqLcQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=mcVFGs03RA+w1BNUMvke2PzFMqp7sN6cX2MKvka2SC3wR15I6CrUD5u7WYSI4ZAH EzmJN/26f9Qcr7KvdXVezLJ/akoyaa3pC+Fna+8wTHs8gpf60sXk0GW5BZbsApH85 m2LquSAw4k62n3cYyq/+n/tQ3OL8gnpLzB053LG4NjgMnA2c6GG+BzR2Jvxb0WfLr MyKw9ZXlUFQ9ZqUr/S8flkhGFXfrMUk4lyVftLteasL7tYFf/xxfWGDTBIRjmI5OK eE/IogQohq37gTqiBVUaOSPgcDasESgJ/VyRzodAJBMj2ior1VEYHtVHsAzYFuuPZ sXCIAOZvIkoKNf1Ftg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MWRVh-1tDBOl2Unr-00QFRK; Fri, 22 Nov 2024 16:59:36 +0100 In-Reply-To: <87zflr7jpq.fsf@gmx.de> (Michael Albinus's message of "Fri, 22 Nov 2024 09:31:45 +0100") X-Provags-ID: V03:K1:RBWOTjSY5IiLPLnWoErRLKc0CB5Ltodv9Xin7HaP64biUi7lacu WGK1SX7PXl63spShfAIIZ3kY/xk0cchGaptn50bH7K66wCkmvX4Z3ASyQ4ZL6fLfy6J9Hms /e/4nAiJfuW58TlXuuIOy00QgsfEZCQnH1EaU6w6PM8jXQ3vLk+J74XipS4LbyvNnoESuWh 0C/JyjbghGAYvuba/oXYQ== UI-OutboundReport: notjunk:1;M01:P0:uoAWdJl3o3E=;coOCm2zdLWPFjMT5QbUw63k/tL8 Ovj3e3Ed1RPOOHg6rTZrT/xrXm9eFvKDRaW01oXpDdRQ0sJK22yCkp+qt3+5Dt85dt0yIgzpf JmbDiQYFxBwxm6l269kU3KWg9g+qI6tuOP0xx5NQE0iRTJ++QqHZuZujy1pzSOk5T3afj8awF YLt0M49muGb6BneKcv7LANKeViYCa8psCsSvhaHVWxhelKyIde9G+ch+pitvgWPUmKNVjZpxf 7BXydxrpiKUZvRGcQ965apktSQa7cgxJ6fc8QguALkt9CtU1iJjS/ISsKgqyKV4Ie1ohUVbHX E53HFZohCRz2qhp+xUrtC4tyrn44yaS78h651ExpTgEDhPTwunYy+UO5AuMsmIKG8msLyi7B4 XMBhrbty0xk8cHZd891AILxIIpBcwT+KsozOEuA2nQE0WUZGM2JDCFHq9NLrPprKtbXNN0ToU gdAaUPoxiyTGKfaFndnmAMlZcZar/RlsdpODXTSWOsmChW1HUbex7ZOzLOxHDZz/o5cSO7sax Mv5SyFjZC/780fVdU6OCeOV/l5ZNl1EHHPrxTt6Mp4v3a/InkKmGBB307N+b4hGaZ1OqeJgI4 xXYCZ6f7Bxhe3wkAOl0Z6lVH92xUt0iRRFWHxGnJVhdyv1T0tplLsPvC2vgyGSK0HY7iYI4x4 YZth3eAfSISn7I9to1RuJclOzjTHAjQs/Fh47QwOE4YYIBJB+NSLeFHK/VgSpwFjapVA7WKXK jtrmqSc0pFMluYYkkChVRP50bFwELFGvyvEv6HbKQ/9+ixTbUzvZpmV44xHx4x8rTXXHuYJc X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295797 Archived-At: --=-=-= Content-Type: text/plain Michael Albinus writes: Hi Arsen, >> I'd also love to hear from the authors of auth-source-pass. > > Sure. I don't use auth-source-pass myself, Trying to be more constructive: what about the appended patch? It should fix the problem reported here, and it is simple. Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/lisp/auth-source-pass.el b/lisp/auth-source-pass.el index 08abcf6b572..1a741a1b696 100644 =2D-- a/lisp/auth-source-pass.el +++ b/lisp/auth-source-pass.el @@ -195,10 +195,15 @@ auth-source-pass--get-attr (defun auth-source-pass--read-entry (entry) "Return a string with the file content of ENTRY." (with-temp-buffer - (insert-file-contents (expand-file-name - (format "%s.gpg" entry) - auth-source-pass-filename)) - (buffer-substring-no-properties (point-min) (point-max)))) + ;; `file-name-handler-alist' could be nil, or miss the + ;; `epa-file-handler' entry. We ensure, that it does exist. + ;; (Bug#67937) + (let ((file-name-handler-alist + (cons epa-file-handler file-name-handler-alist))) + (insert-file-contents (expand-file-name + (format "%s.gpg" entry) + auth-source-pass-filename)) + (buffer-substring-no-properties (point-min) (point-max))))) (defun auth-source-pass-parse-entry (entry) "Return an alist of the data associated with ENTRY. --=-=-=--