From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: phillip.lord@russet.org.uk 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: Sat, 13 Jul 2019 15:30:50 +0100 Message-ID: References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59470"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Roundcube Webmail/1.3.8 Cc: bug-gnu-emacs , mah@everybody.org, 36598@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 13 16:31:17 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 1hmJ3U-000F84-PI for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jul 2019 16:31:16 +0200 Original-Received: from localhost ([::1]:56544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmJ3M-0006Sq-Ue for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jul 2019 10:31:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45518) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmJ3J-0006SY-N8 for bug-gnu-emacs@gnu.org; Sat, 13 Jul 2019 10:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmJ3G-0000EL-7K for bug-gnu-emacs@gnu.org; Sat, 13 Jul 2019 10:31:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34193) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmJ3F-0000Cs-OS for bug-gnu-emacs@gnu.org; Sat, 13 Jul 2019 10:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hmJ3F-0007gO-LQ for bug-gnu-emacs@gnu.org; Sat, 13 Jul 2019 10:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: phillip.lord@russet.org.uk Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jul 2019 14:31: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.156302825929409 (code B ref 36598); Sat, 13 Jul 2019 14:31:01 +0000 Original-Received: (at 36598) by debbugs.gnu.org; 13 Jul 2019 14:30:59 +0000 Original-Received: from localhost ([127.0.0.1]:43014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmJ3C-0007dz-Uc for submit@debbugs.gnu.org; Sat, 13 Jul 2019 10:30:59 -0400 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:45858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmJ3A-0007Wb-IC for 36598@debbugs.gnu.org; Sat, 13 Jul 2019 10:30:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Message-ID:References:In-Reply-To:Subject:Cc:To :From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fu1gUZ9ZgwNvIms6dVl6ym4HxCXHghxml8N+sSEKTOU=; b=FWjWlUle9rb5encC/7mVDLJ6AI k68QkxmPB1FdbJwpQY9vg/F22OQCkljZWLZIBLAGrMUiYbpS1hDnLOPVuHoHHPr6EbM9h70ne8/i0 Hdv7zk9xXSgj5oVWbfdquY+rgUg3gc43FYHCr7Vj+m6O6FxnZ0xhv1pFn+PJCchEp8mS9U1+7OrSD DwGc7JXBwzMyxLotefNqRL/XIGMH5JjOVJTuD4Z/Urwyv9H4wDNYiigKoTqL/DbVDgmK2ICoL4eXN VgnaqLaNcBwItkAyCwzW2kHzmC4qr0v9y4FtpF+arBMnx/wok7IJ1Qe8X7L/eL4rn1LiIUU+LKTeJ r4GfNqrA==; Original-Received: from [::1] (port=36526 helo=cloud103.planethippo.com) by cloud103.planethippo.com with esmtpa (Exim 4.92) (envelope-from ) id 1hmJ34-000532-CF; Sat, 13 Jul 2019 15:30:50 +0100 In-Reply-To: <87k1cmwnu6.fsf@mouse.gnus.org> X-Sender: phillip.lord@russet.org.uk X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk 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:162887 Archived-At: On 2019-07-13 05:38, Lars Ingebrigtsen wrote: > mah@everybody.org (Mark A. Hershberger) writes: > >> $ ls -l /tmp/emacs1000 >> lrwxrwxrwx 1 mah mah 20 Jul 11 09:53 /tmp/emacs1000 -> >> /run/user/1000/emacs >> >> Whoever set up the symlink for /tmp/emacs1000 should also change the >> value of server-socket-dir. > > I'm unable to reproduce this error -- do you have a recipe starting > from > "emacs -Q"? > > What is it that triggers the "is not a safe directory because it is a > symlink" error? Do you have a backtrace? I discovered the cause of this the other day. 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) Phil