From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36598: 26.1; (error "=?UTF-8?Q?=E2=80=98/tmp/emacs1000=E2=80=99?= is not a safe directory because it is a symlink") Date: Sun, 14 Jul 2019 13:44:05 +0200 Message-ID: References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> <44a502116d2c0568d120b7328913b26a@russet.org.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="105489"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: mah@everybody.org, 36598@debbugs.gnu.org, Stefan Monnier To: phillip.lord@russet.org.uk Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 14 13:45:07 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmcwF-000RJ6-7X for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Jul 2019 13:45:07 +0200 Original-Received: from localhost ([::1]:59836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmcwD-0008Dh-KA for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Jul 2019 07:45:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37935) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmcwB-0008DN-8s for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 07:45:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmcwA-00088I-3p for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 07:45:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmcw9-00087x-W9 for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 07:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hmcw9-0006QU-Nx for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 07:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2019 11:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36598 X-GNU-PR-Package: emacs Original-Received: via spool by 36598-submit@debbugs.gnu.org id=B36598.156310465524629 (code B ref 36598); Sun, 14 Jul 2019 11:45:01 +0000 Original-Received: (at 36598) by debbugs.gnu.org; 14 Jul 2019 11:44:15 +0000 Original-Received: from localhost ([127.0.0.1]:43917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmcvP-0006PB-5j for submit@debbugs.gnu.org; Sun, 14 Jul 2019 07:44:15 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:50480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmcvN-0006P2-2s for 36598@debbugs.gnu.org; Sun, 14 Jul 2019 07:44:13 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmcvF-0001p1-SP; Sun, 14 Jul 2019 13:44:08 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXZjUjrsVvwzZc7AwBg DQCJHgCvTw797bBJhb/SAAACaUlEQVQ4jU2SsXLbMAyGIV/MrrLSU1YTQ/UAlPsCIj0nZ1Ez04To XC56/f6gZCc6WyL54QdAAHTanl5C9H5y3l/T0xRipB20Esd5cmFZRHKM0/gFMhTOje6S/RiW7wo/ TgBBsuRp9A9gslOFG/0NDvOXgj6dKpxDYOTwAD0AAuA3+rjkeboDompefangoUimnuF1ifIt3TZ9 qrXfZHB2V7TyUU9UFiM+ge4VuTk3h6g04nkENzK5xSTZM/gKbkQWyiHJXBXe3YOLCJ2MfxXVwD7u rlqRhBU184gyaS13V73kKzWq9NNFg0+O9hCfLikgo+F9iDPtoT/uIFR7V8tugkABV71Q9j6E/R7G B0E3iE4208dWyABXR/Qf2QZDyMzoHFRfqsVgIF2jU5A3e72H95tCjJgYb6PutQEAMWJkUBEhE2fd bveALC9G0pVkkTjfizhTjGFB3DYRGrdEHzZfDuCVekoshNjyOut5LSLMDKWODdJa5P24j4QHEJPo B/earzRNr/3z1ZWktmEmBJF06vjJT+oO4G1Yh3J+J4B8YrY3vWOmuAzruhabWtV0zHxGa6+R4o9V H0udDjDO1+EZDQz0Vs8Lnw9sB+aBsZnDbaG/Faw8WBiXQf2uv+JF6OUOCtvVbuCfX4SwKvovK0NT sILVMQtpgKHotljL6wZ+RqZNXAGfhm3Jz7/b78AesB6gZyRMcIMdwFBa9TRoGk8AL2rBqi9dTYQZ pQbokFAFq+UKbNudFWBnO8iHlYetBM3hTOgHl3I64AIA9aLcN4cDqYK5/YOXaio4tgygE3to0R/L BQXUwEtzZoD/Zk8PM5keDcgAAAAASUVORK5CYII= In-Reply-To: <44a502116d2c0568d120b7328913b26a@russet.org.uk> (phillip lord's message of "Sat, 13 Jul 2019 16:56:19 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162971 Archived-At: phillip.lord@russet.org.uk writes: > On 2019-07-13 15:45, Lars Ingebrigtsen wrote: >> phillip.lord@russet.org.uk writes: >> >>> Launch emacs-27, start the server. Now launch emacs-26 and start the >>> server with a different. The problem is that >>> emacs-27 creates the file /tmp/emacs($PID) as a symlink, while >>> emacs-26 doesn't like it. >>> >>> Probably created by >>> >>> b663c837249 (Stefan Monnier 2019-05-03 538) >> >> Could you post a backtrace for the "doesn't like it" case? > > Sure. It is Emacs-26 that errors. > > As far as I can see, this will only affect the edge case of someone > running two versions of Emacs. I tend to do this (I run gnus in a > standalone release emacs, and everything else in another emacs). Commit b663c837249 (in May) which says "Cosmetic changes" is the one that introduced this code? (let ((olddir (or (getenv "TMPDIR") "/tmp"))) (when (and (equal dir (format "%s/emacs" (getenv "XDG_RUNTIME_DIR"))) (file-writable-p olddir)) (let ((link (format "%s/emacs%d" olddir (user-uid)))) (unless (file-directory-p link) ;; We're using the new location, so try and setup a symlink from ;; the old location, in case we want to use an old emacsclient. ;; FIXME: Check that it's safe to use! (make-symbolic-link dir link t))))) And instead of making things work with an old emacsclient, it breaks the Emacs 26 emacsclient? I may be reading the region history wrong, though. Stefan, was this checked in by mistake? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no