From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aGyYJOY4rWYiCAAA62LTzQ:P1 (envelope-from ) for ; Fri, 02 Aug 2024 19:52:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id aGyYJOY4rWYiCAAA62LTzQ (envelope-from ) for ; Fri, 02 Aug 2024 21:52:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=gGcjFZH3; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20240523 header.b=b6bBiLws; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722628326; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CIOZqsrNDufk7mlGvdAUeaYULjk/nNE8DiG7dUB0W9o=; b=FfHiIlrX7XfD1fXorfD7vN7Upbe6JOwwPpzRxociVBgRrGpGWaKK5iMvMwIXrmqQLMChU0 ROF2P8pQtVhyYLrPyL+F0cd/DE/NDIf77yrJsDGJQlMD+pQuM6m5JPOXdvDC7eEbDBnyRc FCy+oyhK5FRYO16MN3IZTB7iAqm0RB8Gg4Czf8KK3hWQDeJhHBHQUaE4QVR/pPJpzAeNZu jZDHmbClR2CbIS89/Cfqckt4RmiHFDTqH8qrjgU6tKRJBJ7Zb3HMCS0cMa6b/dt0VwDXPG gutUtaoM1hPdn29UC88IbM2Jwh9ZkK/vF1jOwcNKCXuybqN28PYJxDWsEki2Wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=gGcjFZH3; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20240523 header.b=b6bBiLws; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722628326; a=rsa-sha256; cv=none; b=KAmtoinL+HANYmIwQVrm1aIYFBHSgiz6w5PYvWBglEy3+QRGwrhJs4X/5t1xq/BO+kk1n1 bLcl1f5anPzbr1LXKHkHgpzON8cCWCa264OSQ+qRF82kCrQt3elqwGVVy49k0SmaW+KcxP pypV6SrIvDSW1oRSOr/8gdqI9EWQ0OD3tzfN6lo31v4iDMvPw/80VBLIRCl3Y8hCMaycXQ ls5v7Sx5o7gSkuXzGTaVFDPke4FhYiMPhIIqAamFQR0ZPcAiRCJuOMkaz52mq8kkYqW+J3 5RApLrdSEecXVb8gmv1lBaC8GJlecmvua1AxgRoRSw4IbpPtKInoEOsEOxFoeQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 15F8757160 for ; Fri, 2 Aug 2024 21:52:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZyJV-0007LN-6w; Fri, 02 Aug 2024 15:51:45 -0400 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 1sZyJT-0007L0-O5 for bug-guix@gnu.org; Fri, 02 Aug 2024 15:51:44 -0400 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 1sZyJT-0004q5-Fl for bug-guix@gnu.org; Fri, 02 Aug 2024 15:51:43 -0400 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:From:To:Subject; bh=CIOZqsrNDufk7mlGvdAUeaYULjk/nNE8DiG7dUB0W9o=; b=gGcjFZH3tFnfky5FXwhv9LNFkdGLH+1ebwZWtxlgasm2TvTcuc7D8E33knhirzclyvnAEcgR+Pox08dXcK4AX7TKyBypje2/hSU8b8SbhHe0a4mmpDC4AQMEV2dJnv5gbCCmQwpLnjmjkPjq9AwYrJL6iEK7k4UrF1OLkuMMmCinjUVNKkbomOf8F0DIo4LXR2pLWMHmLM2hmn2Tz9o7BvcX1+pp3zsNl4PzBnmJcOiKXcbVPmS/vfs1IwRK5GtBDvIMt13tMxmb2YQSm317YVRHVqA6JP2+ZTGwoF4Wn4iyBHs8190Vja1T4g4djfEgL/KlVYJc74wTvAwdUwztPQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sZyJl-0002df-Se for bug-guix@gnu.org; Fri, 02 Aug 2024 15:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#72427: emacs-daemons: string handling error Resent-From: Christopher Howard Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 02 Aug 2024 19:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72427 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 72427@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172262830310116 (code B ref -1); Fri, 02 Aug 2024 19:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Aug 2024 19:51:43 +0000 Received: from localhost ([127.0.0.1]:53770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZyJT-0002d4-DY for submit@debbugs.gnu.org; Fri, 02 Aug 2024 15:51:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:45404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZyJQ-0002cv-Qc for submit@debbugs.gnu.org; Fri, 02 Aug 2024 15:51:42 -0400 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 1sZyJ7-0007Io-TC for bug-guix@gnu.org; Fri, 02 Aug 2024 15:51:21 -0400 Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZyJ5-0004nB-ME for bug-guix@gnu.org; Fri, 02 Aug 2024 15:51:21 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 8EBF43297AC3 for ; Fri, 2 Aug 2024 21:51:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20240523; t=1722628264; x=1724442665; bh=CIOZqsrNDufk7mlGvdAUeaYULjk/nNE8DiG7dUB0W9o=; b=b6bBiLwsLKL0 K2yIOWZkuEaH8HYPvj3loxeDFjaIYn/xIs3pb0WKVa6dNh3si5RUVfagL15EVb7E 8aKDtX3ZMsfyajII4RKfvpl2K24ZlHxZ9l6KEtbT9cArGXRHJF6LEj667YYkaIJd 4K4GaZzG9hRtxmaM/oIXn4mfSrfnyi0R5MKlMn07dVkzyyuB4734HVKH8/Y9dFXu f0VpBVXH1wlQTnW2G7YRySa4W/esFiuBDCCn9bZ9lAAO9v8ZsikrvQEj3Qr1ndMs yfFlPz6yyHAvSYZECNoEj1fQFFyKMgP6pQU6JjXm2CnNzFYX3jiXfIsWuvQhTGcL y0+gL+X6eA== X-Virus-Scanned: amavis at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id P4LU9iptXlHW for ; Fri, 2 Aug 2024 21:51:04 +0200 (CEST) Received: from int-mx011.mykolab.com (unknown [10.9.13.11]) by mx.kolabnow.com (Postfix) with ESMTPS id 2E9FE30EC7EC for ; Fri, 2 Aug 2024 21:51:03 +0200 (CEST) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx011.mykolab.com (Postfix) with ESMTPS id 69DD3307FF62 for ; Fri, 2 Aug 2024 21:51:03 +0200 (CEST) From: Christopher Howard Date: Fri, 02 Aug 2024 11:51:00 -0800 Message-ID: <871q36bt5n.fsf@librehacker.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=212.103.80.155; envelope-from=christopher@librehacker.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 15F8757160 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.38 X-Spam-Score: -8.38 X-TUID: DJfqDNDCxBl7 The emacs-daemons we use, which is the melpa-stable version, is very old (a= bout 6 years out of date), and has a bug caused by a string handling issue.= This occurs when "Daemons Always Sudo" is set to on, which is required if = you want to view the system processes of shepherd, rather than your home pr= ocesses. Recipe: 1. Use "customize-group daemons" and set "Daemons Always Sudo" to "on". Sav= e and set, or set for the session. 2. M-x daemons. This will throw an error along the lines of ``` Operation on Daemons Always Sudo: 0 cd: No such directory: /sudo::/tmp/tmp.NyPiPKi1eL ``` If you look into this, you'll discover that function "daemons--sudo" does n= ot trim the newline off the end of the result when it calls "daemons--shell= -command-to-string". A slightly modified version like so will work (the sam= e, but with string-trim inserted): ``` (with-eval-after-load 'daemons (defun daemons--sudo () "Become root using TRAMP (if on local system). Switches to a temporary directory to minimise damage potential. Note that this only works on the local system, not remote systems. For a r= emote system you need to specify your own TRAMP path with a privileged user. e.g. /ssh:me@example.com|sudo:example.com:" (unless (daemons--using-tramp-path-p default-directory) (let ((tempdir (string-trim (daemons--shell-command-to-string "mktemp= -d")))) (cd (format "/sudo::%s" tempdir)))))) ``` I wanted to reach out to the author/maintainer and find out if he was plann= ing to tag another release for melpa-stable, but I don't have a github acco= unt and don't allow github javascript. I was unable to find any other conta= ct information for him. Maybe somebody who uses github would want to reach = out to him. Or if not, maybe we would want to patch the stable version. Here is my system information: ``` christopher@theoden=20 -------------------=20 OS: Guix System x86_64=20 Host: OptiPlex 9020 00=20 Kernel: 5.15.161-gnu=20 Uptime: 29 days, 22 hours, 33 mins=20 Packages: 167 (guix-system), 251 (guix-user)=20 Shell: bash 5.1.16=20 Resolution: 1920x1080=20 DE: GNOME=20 Theme: Adwaita [GTK2/3]=20 Icons: Adwaita [GTK2/3]=20 Terminal: shepherd=20 CPU: Intel i5-4570 (4) @ 3.600GHz=20 GPU: AMD ATI Radeon HD 8490 / R5 235X OEM=20 GPU: Intel HD Graphics=20 Memory: 4265MiB / 15914MiB=20 ``` ``` guix describe Generation 137 Jul 27 2024 05:04:20 (current) guix c6ff1d6 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: c6ff1d6ff761af0bd9bac5403fd834f04a14a192 ``` --=20 =F0=9F=93=9B Christopher Howard =F0=9F=9A=80 gemini://gem.librehacker.com =F0=9F=8C=90 http://gem.librehacker.com =D7=91=D7=A8=D7=90=D7=A9=D7=99=D7=AA =D7=91=D7=A8=D7=90 =D7=90=D7=9C=D7=94= =D7=99=D7=9D =D7=90=D7=AA =D7=94=D7=A9=D7=9E=D7=99=D7=9D =D7=95=D7=90=D7=AA= =D7=94=D7=90=D7=A8=D7=A5