From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jake Newsgroups: gmane.emacs.bugs,gmane.emacs.erc.general Subject: bug#67978: 29.1; ERC 5.5.0.29.1: Unnecessary .authinfo.gpg decryption causes connection failure to irc.libera.chat Date: Sat, 23 Dec 2023 10:31:18 +1030 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ed7ed8060d220876" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32007"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-erc@gnu.org To: 67978@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 23 01:02:15 2023 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 1rGpT4-00087i-Tu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Dec 2023 01:02:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGpSq-0007iQ-Va; Fri, 22 Dec 2023 19:02:01 -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 1rGpSo-0007gz-CV for bug-gnu-emacs@gnu.org; Fri, 22 Dec 2023 19:01:58 -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 1rGpSo-0003s0-4M for bug-gnu-emacs@gnu.org; Fri, 22 Dec 2023 19:01:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGpSs-0005xH-Is for bug-gnu-emacs@gnu.org; Fri, 22 Dec 2023 19:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jake Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Dec 2023 00:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67978 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170328971122870 (code B ref -1); Sat, 23 Dec 2023 00:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Dec 2023 00:01:51 +0000 Original-Received: from localhost ([127.0.0.1]:48066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGpSg-0005wn-Fd for submit@debbugs.gnu.org; Fri, 22 Dec 2023 19:01:51 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:41478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGpSc-0005wT-Jh for submit@debbugs.gnu.org; Fri, 22 Dec 2023 19:01:48 -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 1rGpSS-0007f3-0T; Fri, 22 Dec 2023 19:01:36 -0500 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rGpSP-0003qJ-LQ; Fri, 22 Dec 2023 19:01:35 -0500 Original-Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2cc88818ff0so32867091fa.0; Fri, 22 Dec 2023 16:01:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703289690; x=1703894490; darn=gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=DOdfnJ73/GE2XH494Wf2KX80Cg8wGpakrG4C2Iawwns=; b=cecqVqo2lgOCX5FVyHWc7TDgdZQ3XVuvnN/3T72wIjav7DJiY0ARWC+aQFZa6H0tUZ mPL6u7ZwSQ/6nrz3lhvRC7ISZPZ1erERvtdhvCKSPpY171QToRHlWY77lRF9+SvSvhHo 84namYqwTQFbicXqX2pzISREmxw9Ko31/whG58qfdLW9bb1FJ3EKAne3o0qj908gpL9h 0kbBcYiJRIX/a97gdcQ1Q9Id9daEt3xYt7/b6Qku/wj3TlkWvoMImqhm8ZHV3T84ABbi pblUO/C9uD1ygOQ8d8Vhxn8KT/Et4faAo5kR95g7Y9JJgrAfi86sSm/3HJqQ2TvPEw9y gObw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703289690; x=1703894490; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DOdfnJ73/GE2XH494Wf2KX80Cg8wGpakrG4C2Iawwns=; b=YVQmxtyAS94mZg0MFG7ecLZDqh4PDw9Dzkj2VjRictEqCyskcWb7VxaqLxOn3+2C2q 1/geHVMC6lYvkk+2K432j4nCxioU8uugfX3A/vBuL4TWOBce110iKGgPYPtJ13B7yHL7 9QTs5E055h+FH6tjAEJq/+ksDs2DqV1SOJqp+oBPK/Xl0ER0LSkLmRpbNTXv3H71Au56 EqTZDaH46Ji05lU3vmIqfAijYmnUZrFdAnDA6c3HmNbgBFzrzUPMTbHpvu7oTaBBY0SZ cxvUV6Ix2vNCm7SZ54lBwa0cvebRBxIBOJcvvgSUIRvSkGA7gVHbuPrhFql1cTccxgmQ 2NpQ== X-Gm-Message-State: AOJu0YwHok2J7bVKCFnV1Y3bMQ3qcjPlG43J0vIqWCPjHQjY69JbW4dg Dgu6wQRdafnlB4XKSVjqnHHWmjGsqCXLUPwzotcSDhfNjvk= X-Google-Smtp-Source: AGHT+IHWWN9v94YXTugAQOx0b0AA5S2sVqyL0QAv4gZVDgGqhYQBjMdgiP9Vz1QRf4jb22pEtml66DiJNnWl1rFR4nI= X-Received: by 2002:a05:651c:1a0e:b0:2cc:b9aa:8f1f with SMTP id by14-20020a05651c1a0e00b002ccb9aa8f1fmr30571ljb.24.1703289690094; Fri, 22 Dec 2023 16:01:30 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=jforst.mailman@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:276695 gmane.emacs.erc.general:2333 Archived-At: --000000000000ed7ed8060d220876 Content-Type: text/plain; charset="UTF-8" Hello I encountered an issue with authinfo interfering with ERC: When I attempt to connect to the irc.libera.chat server with a random nickname and no password, if a ~/.authinfo.gpg file is present on my system (or any .gpg file in the auth-sources variable), ERC attempts to decrypt this file when connecting. When I don't decrypt it, the connection fails. This occurs with emacs -Q. If I set auth-sources to nil, or change the name of the .gpg file to something else not in auth-sources, I get the expected behavior; i.e., it connects to the server. Steps to reproduce: 1. have an encrypted ~/.authinfo.gpg file (this will also be an element of the variable auth-sources, which is the default) 2. emacs -Q 3. M-x erc-tls interactively: RET on default values irc.libera.chat and 6697, then enter a unique nickname and do not enter a password 4. be prompted to decrypt ~/.authinfo.gpg Thanks Jake In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-11-26 built on pc Repository revision: a9b28224af0f73d1fe0f422e9b318c5b91af889b Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Ubuntu 22.04.3 LTS Configured using: 'configure --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_AU.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-track-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t erc-networks-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message yank-media puny dired dired-loaddefs rfc822 mml mml-sec gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils epa-file epa derived epg rfc6068 epg-config erc-list erc-menu erc-join erc-ring erc-pcomplete pcomplete comint ansi-osc ansi-color ring erc-track erc-match erc-button browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap wid-edit erc-fill erc-stamp erc-netsplit url-parse url-vars erc-goodies erc iso8601 time-date auth-source eieio eieio-core password-cache json map thingatpt pp format-spec cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs cl-extra help-mode cl-lib erc-backend erc-networks byte-opt gv bytecomp byte-compile erc-common erc-compat erc-loaddefs rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 135458 9425) (symbols 48 11459 0) (strings 32 34227 2725) (string-bytes 1 1091358) (vectors 16 23335) (vector-slots 8 458080 9833) (floats 8 39 25) (intervals 56 1318 0) (buffers 976 13)) --000000000000ed7ed8060d220876 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello

I encountered an issue with authinfo interfer= ing with ERC:
When I attempt to connect to the irc.libera.chat server wi= th a random
nickname and no password, if a ~/.authinfo.gpg file is prese= nt on my
system (or any .gpg file in the auth-sources variable), ERC att= empts to
decrypt this file when connecting. When I don't decrypt it,= the
connection fails.

This occurs with emacs -Q.

If I set= auth-sources to nil, or change the name of the .gpg file to
something e= lse not in auth-sources, I get the expected behavior; i.e., it connects to = the server.

Steps to reproduce:
1. have an encrypted ~/.authinfo.= gpg file (this will also be an element of
the variable auth-sources, whi= ch is the default)
2. emacs -Q
3. M-x erc-tls
interactively: RET = on default values irc.libera.chat and 6697, then enter a unique nickname an= d do not enter a password
4. be prompted to decrypt ~/.authinfo.gpg
<= br>Thanks
Jake


In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gn= u, GTK+ Version 3.24.33,
=C2=A0cairo version 1.16.0) of 2023-11-26 built= on pc
Repository revision: a9b28224af0f73d1fe0f422e9b318c5b91af889b
= Repository branch: HEAD
Windowing system distributor 'The X.Org Foun= dation', version 11.0.12101004
System Description: Ubuntu 22.04.3 LT= S

Configured using:
=C2=A0'configure --with-native-compilatio= n'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP = GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTE= MD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG = SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM = GTK3 ZLIB

Important settings:
=C2=A0 value of $LANG: en_AU.UTF-8<= br>=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: = utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect= :
=C2=A0 erc-list-mode: t
=C2=A0 erc-menu-mode: t
=C2=A0 erc-autoj= oin-mode: t
=C2=A0 erc-ring-mode: t
=C2=A0 erc-track-mode: t
=C2= =A0 erc-match-mode: t
=C2=A0 erc-button-mode: t
=C2=A0 erc-fill-mode:= t
=C2=A0 erc-stamp-mode: t
=C2=A0 erc-netsplit-mode: t
=C2=A0 erc= -irccontrols-mode: t
=C2=A0 erc-noncommands-mode: t
=C2=A0 erc-move-t= o-prompt-mode: t
=C2=A0 erc-readonly-mode: t
=C2=A0 erc-networks-mode= : t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldo= c-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric-indent-mode: t=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-m= ode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: = t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 line= -number-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode= : t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t=C2=A0 auto-compression-mode: t

Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message yank-media puny = dired
dired-loaddefs rfc822 mml mml-sec gnus-util text-property-searchmm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
= mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-u= tils epa-file epa derived epg rfc6068 epg-config erc-list erc-menu
erc-j= oin erc-ring erc-pcomplete pcomplete comint ansi-osc ansi-color
ring erc= -track erc-match erc-button browse-url url url-proxy url-privacy
url-exp= and url-methods url-history url-cookie generate-lisp-file
url-domsuf url= -util mailcap wid-edit erc-fill erc-stamp erc-netsplit
url-parse url-var= s erc-goodies erc iso8601 time-date auth-source eieio
eieio-core passwor= d-cache json map thingatpt pp format-spec cl-loaddefs
comp comp-cstr war= nings icons subr-x rx cl-seq cl-macs cl-extra
help-mode cl-lib erc-backe= nd erc-networks byte-opt gv bytecomp
byte-compile erc-common erc-compat = erc-loaddefs rmc iso-transl tooltip
cconv eldoc paren electric uniquify = ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win t= erm/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabula= ted-list replace newcomment
text-mode lisp-mode prog-mode register page = tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mo= use jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer= nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8= -lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese euc= jp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic india= n cyrillic chinese
composite emoji-zwj charscript charprop case-table ep= a-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button lo= addefs
theme-loaddefs faces cus-face macroexp files window text-properti= es
overlay sha1 md5 base64 format env code-pages mule custom widget keym= ap
hashtable-print-readable backquote threads dbusbind inotify lcms2
= dynamic-setting system-font-setting font-render-setting cairo
move-toolb= ar gtk x-toolkit xinput2 x multi-tty make-network-process
native-compile= emacs)

Memory information:
((conses 16 135458 9425)
=C2=A0(sy= mbols 48 11459 0)
=C2=A0(strings 32 34227 2725)
=C2=A0(string-bytes 1= 1091358)
=C2=A0(vectors 16 23335)
=C2=A0(vector-slots 8 458080 9833)=
=C2=A0(floats 8 39 25)
=C2=A0(intervals 56 1318 0)
=C2=A0(buffers= 976 13))
--000000000000ed7ed8060d220876--