From unknown Sun Aug 10 09:45:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36598 <36598@debbugs.gnu.org> To: bug#36598 <36598@debbugs.gnu.org> Subject: Status: 26.1; (error "=?UTF-8?Q?=E2=80=98/tmp/emacs1000=E2=80=99?= is not a safe directory because it is a symlink") Reply-To: bug#36598 <36598@debbugs.gnu.org> Date: Sun, 10 Aug 2025 16:45:58 +0000 retitle 36598 26.1; (error "=E2=80=98/tmp/emacs1000=E2=80=99 is not a safe = directory because it is a symlink") reassign 36598 emacs submitter 36598 mah@everybody.org (Mark A. Hershberger) severity 36598 normal tag 36598 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 11 10:11:11 2019 Received: (at submit) by debbugs.gnu.org; 11 Jul 2019 14:11:12 +0000 Received: from localhost ([127.0.0.1]:38307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlZmv-0001uT-DW for submit@debbugs.gnu.org; Thu, 11 Jul 2019 10:11:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:55081) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlZms-0001uK-Eh for submit@debbugs.gnu.org; Thu, 11 Jul 2019 10:11:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57066) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlZmo-00039v-J9 for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:11:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlZmj-0006SA-OP for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:11:02 -0400 Received: from nospam.nichework.com ([206.71.169.33]:46745) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hlZmj-0006Nl-CW for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:10:57 -0400 Received: from localhost (localhost.localdmain [127.0.0.1]) by nospam.nichework.com (Postfix) with ESMTP id 5C178B4010 for ; Thu, 11 Jul 2019 10:10:45 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at nospam.nichework.com Received: from nospam.nichework.com ([127.0.0.1]) by localhost (nospam.nichework.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 52o5m89gIYSB for ; Thu, 11 Jul 2019 10:10:45 -0400 (EDT) Received: from mail.nichework.com (mail.nichework.com [108.161.151.158]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by nospam.nichework.com (Postfix) with ESMTPS id 116FCB400B for ; Thu, 11 Jul 2019 10:10:45 -0400 (EDT) Received: from mail.nichework.com (localhost.localdomain [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTPS id 261B84E17E0 for ; Thu, 11 Jul 2019 07:10:52 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id 191F14E1830 for ; Thu, 11 Jul 2019 07:10:52 -0700 (PDT) X-Virus-Scanned: amavisd-new at mail.nichework.com Received: from mail.nichework.com ([127.0.0.1]) by localhost (mail.nichework.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id x9jm3CdCdf8M for ; Thu, 11 Jul 2019 07:10:52 -0700 (PDT) Received: from silk.everybody.org (unknown [24.229.149.248]) by mail.nichework.com (Postfix) with ESMTPSA id 85ED64E17E0 for ; Thu, 11 Jul 2019 07:10:51 -0700 (PDT) From: mah@everybody.org (Mark A. Hershberger) To: bug-gnu-emacs@gnu.org Subject: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1000=E2=80=99?= is not a safe directory because it is a symlink") Date: Thu, 11 Jul 2019 10:10:49 -0400 Message-ID: <87muhkr79y.fsf@silk.nichework.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 206.71.169.33 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) $ 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. In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4) of 2019-02-03, modified by Debian built on zam904 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: Mark saved where search started [2 times] funcall-interactively: Buffer is read-only: # Creating customization items... Creating customization items ...done Resetting customization items...done Creating customization setup...done Quit Type "q" to restore previous buffer. scroll-up-command: End of buffer Quit Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs-26.1+1=3D. -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: direnv-mode: t flx-ido-mode: t yahoo-weather-mode: t global-magit-file-mode: t display-time-mode: t override-global-mode: t magit-wip-after-save-mode: t diff-auto-refine-mode: t global-git-commit-mode: t magit-auto-revert-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t ido-everywhere: t global-emojify-mode: t emojify-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: ~/work/code/magit-gerrit/magit-gerrit hides /home/mah/.emacs.d/elpa/magit-g= errit-20160226.930/magit-gerrit ~/work/code/magit-gitflow/magit-gitflow hides /home/mah/.emacs.d/elpa/magit= -gitflow-20170929.824/magit-gitflow ~/work/code/magit-tramp/magit-tramp hides /home/mah/.emacs.d/elpa/magit-tra= mp-0.1.0/magit-tramp ~/work/code/magithub/magithub-issue hides /home/mah/.emacs.d/elpa/magithub-= 20190512.2316/magithub-issue ~/work/code/magithub/magithub-orgs hides /home/mah/.emacs.d/elpa/magithub-2= 0190512.2316/magithub-orgs ~/work/code/magithub/magithub hides /home/mah/.emacs.d/elpa/magithub-201905= 12.2316/magithub ~/work/code/magithub/magithub-core hides /home/mah/.emacs.d/elpa/magithub-2= 0190512.2316/magithub-core ~/work/code/magithub/magithub-comment hides /home/mah/.emacs.d/elpa/magithu= b-20190512.2316/magithub-comment ~/work/code/magithub/magithub-repo hides /home/mah/.emacs.d/elpa/magithub-2= 0190512.2316/magithub-repo ~/work/code/magithub/magithub-dash hides /home/mah/.emacs.d/elpa/magithub-2= 0190512.2316/magithub-dash ~/work/code/magithub/magithub-notification hides /home/mah/.emacs.d/elpa/ma= github-20190512.2316/magithub-notification ~/work/code/magithub/magithub-issue-post hides /home/mah/.emacs.d/elpa/magi= thub-20190512.2316/magithub-issue-post ~/work/code/magithub/magithub-settings hides /home/mah/.emacs.d/elpa/magith= ub-20190512.2316/magithub-settings ~/work/code/magithub/magithub-faces hides /home/mah/.emacs.d/elpa/magithub-= 20190512.2316/magithub-faces ~/work/code/magithub/magithub-edit-mode hides /home/mah/.emacs.d/elpa/magit= hub-20190512.2316/magithub-edit-mode ~/work/code/magithub/magithub-ci hides /home/mah/.emacs.d/elpa/magithub-201= 90512.2316/magithub-ci ~/work/code/magithub/magithub-issue-view hides /home/mah/.emacs.d/elpa/magi= thub-20190512.2316/magithub-issue-view ~/work/code/magithub/magithub-user hides /home/mah/.emacs.d/elpa/magithub-2= 0190512.2316/magithub-user ~/work/code/magithub/magithub-issue-tricks hides /home/mah/.emacs.d/elpa/ma= github-20190512.2316/magithub-issue-tricks ~/work/code/magithub/magithub-completion hides /home/mah/.emacs.d/elpa/magi= thub-20190512.2316/magithub-completion ~/work/code/magithub/magithub-autoloads hides /home/mah/.emacs.d/elpa/magit= hub-20190512.2316/magithub-autoloads ~/work/code/magithub/magithub-label hides /home/mah/.emacs.d/elpa/magithub-= 20190512.2316/magithub-label ~/work/code/orgit/orgit hides /home/mah/.emacs.d/elpa/orgit-20190417.1724/o= rgit ~/work/code/magit/lisp/magit-autorevert hides /home/mah/.emacs.d/elpa/magit= -20190625.1946/magit-autorevert ~/work/code/magit/lisp/magit-stash hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-stash ~/work/code/magit/lisp/magit-repos hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-repos ~/work/code/magit/lisp/magit-merge hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-merge ~/work/code/magit/lisp/magit-extras hides /home/mah/.emacs.d/elpa/magit-201= 90625.1946/magit-extras ~/work/code/magit/lisp/magit-subtree hides /home/mah/.emacs.d/elpa/magit-20= 190625.1946/magit-subtree ~/work/code/magit/lisp/magit-clone hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-clone ~/work/code/magit/lisp/magit-sequence hides /home/mah/.emacs.d/elpa/magit-2= 0190625.1946/magit-sequence ~/work/code/magit/lisp/magit-ediff hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-ediff ~/work/code/magit/lisp/magit-reflog hides /home/mah/.emacs.d/elpa/magit-201= 90625.1946/magit-reflog ~/work/code/magit/lisp/magit-core hides /home/mah/.emacs.d/elpa/magit-20190= 625.1946/magit-core ~/work/code/magit/lisp/magit-git hides /home/mah/.emacs.d/elpa/magit-201906= 25.1946/magit-git ~/work/code/magit/lisp/git-rebase hides /home/mah/.emacs.d/elpa/magit-20190= 625.1946/git-rebase ~/work/code/magit/lisp/magit-patch hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-patch ~/work/code/magit/lisp/magit-fetch hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-fetch ~/work/code/magit/lisp/magit-gitignore hides /home/mah/.emacs.d/elpa/magit-= 20190625.1946/magit-gitignore ~/work/code/magit/lisp/magit-bookmark hides /home/mah/.emacs.d/elpa/magit-2= 0190625.1946/magit-bookmark ~/work/code/magit/lisp/magit-worktree hides /home/mah/.emacs.d/elpa/magit-2= 0190625.1946/magit-worktree ~/work/code/magit/lisp/magit-bisect hides /home/mah/.emacs.d/elpa/magit-201= 90625.1946/magit-bisect ~/work/code/magit/lisp/magit-obsolete hides /home/mah/.emacs.d/elpa/magit-2= 0190625.1946/magit-obsolete ~/work/code/magit/lisp/magit-process hides /home/mah/.emacs.d/elpa/magit-20= 190625.1946/magit-process ~/work/code/magit/lisp/magit-branch hides /home/mah/.emacs.d/elpa/magit-201= 90625.1946/magit-branch ~/work/code/magit/lisp/magit-margin hides /home/mah/.emacs.d/elpa/magit-201= 90625.1946/magit-margin ~/work/code/magit/lisp/magit-blame hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-blame ~/work/code/magit/lisp/magit-transient hides /home/mah/.emacs.d/elpa/magit-= 20190625.1946/magit-transient ~/work/code/magit/lisp/magit-notes hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-notes ~/work/code/magit/lisp/magit-reset hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-reset ~/work/code/magit/lisp/magit-files hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-files ~/work/code/magit/lisp/magit-wip hides /home/mah/.emacs.d/elpa/magit-201906= 25.1946/magit-wip ~/work/code/magit/lisp/magit-pull hides /home/mah/.emacs.d/elpa/magit-20190= 625.1946/magit-pull ~/work/code/magit/lisp/magit-diff hides /home/mah/.emacs.d/elpa/magit-20190= 625.1946/magit-diff ~/work/code/magit/lisp/magit hides /home/mah/.emacs.d/elpa/magit-20190625.1= 946/magit ~/work/code/magit/lisp/magit-utils hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-utils ~/work/code/magit/lisp/magit-tag hides /home/mah/.emacs.d/elpa/magit-201906= 25.1946/magit-tag ~/work/code/magit/lisp/magit-status hides /home/mah/.emacs.d/elpa/magit-201= 90625.1946/magit-status ~/work/code/magit/lisp/magit-commit hides /home/mah/.emacs.d/elpa/magit-201= 90625.1946/magit-commit ~/work/code/magit/lisp/magit-imenu hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-imenu ~/work/code/magit/lisp/magit-section hides /home/mah/.emacs.d/elpa/magit-20= 190625.1946/magit-section ~/work/code/magit/lisp/magit-remote hides /home/mah/.emacs.d/elpa/magit-201= 90625.1946/magit-remote ~/work/code/magit/lisp/magit-refs hides /home/mah/.emacs.d/elpa/magit-20190= 625.1946/magit-refs ~/work/code/magit/lisp/magit-autoloads hides /home/mah/.emacs.d/elpa/magit-= 20190625.1946/magit-autoloads ~/work/code/magit/lisp/magit-mode hides /home/mah/.emacs.d/elpa/magit-20190= 625.1946/magit-mode ~/work/code/magit/lisp/magit-log hides /home/mah/.emacs.d/elpa/magit-201906= 25.1946/magit-log ~/work/code/magit/lisp/magit-push hides /home/mah/.emacs.d/elpa/magit-20190= 625.1946/magit-push ~/work/code/magit/lisp/magit-apply hides /home/mah/.emacs.d/elpa/magit-2019= 0625.1946/magit-apply ~/work/code/magit/lisp/magit-pkg hides /home/mah/.emacs.d/elpa/magit-201906= 25.1946/magit-pkg ~/work/code/magit/lisp/magit-submodule hides /home/mah/.emacs.d/elpa/magit-= 20190625.1946/magit-submodule ~/work/code/magit/lisp/git-commit hides /home/mah/.emacs.d/elpa/git-commit-= 20190625.323/git-commit ~/work/code/php-mode/php-mode-debug hides /home/mah/.emacs.d/elpa/php-mode-= 20190624.1607/php-mode-debug ~/work/code/php-mode/php-project hides /home/mah/.emacs.d/elpa/php-mode-201= 90624.1607/php-project ~/work/code/php-mode/php-face hides /home/mah/.emacs.d/elpa/php-mode-201906= 24.1607/php-face ~/work/code/php-mode/php-mode-autoloads hides /home/mah/.emacs.d/elpa/php-m= ode-20190624.1607/php-mode-autoloads ~/work/code/php-mode/php hides /home/mah/.emacs.d/elpa/php-mode-20190624.16= 07/php ~/work/code/php-mode/php-mode hides /home/mah/.emacs.d/elpa/php-mode-201906= 24.1607/php-mode ~/work/code/magit-popup/magit-popup hides /home/mah/.emacs.d/elpa/magit-pop= up-20190223.2234/magit-popup /home/mah/.emacs.d/elpa/shorten-1.6/shorten hides /home/mah/.emacs.d/elpa/t= racking-20171210.2102/shorten ~/work/code/with-editor/with-editor hides /home/mah/.emacs.d/elpa/with-edit= or-20190511.1157/with-editor /home/mah/.emacs.d/elpa/perlcritic-1.10/perlcritic hides /usr/share/emacs/s= ite-lisp/perlcritic /usr/share/emacs/site-lisp/elpa/slime-2.23/slime hides /usr/share/emacs/sit= e-lisp/elpa-src/slime-2.23/slime /usr/share/emacs/site-lisp/elpa/slime-2.23/slime-tests hides /usr/share/ema= cs/site-lisp/elpa-src/slime-2.23/slime-tests /usr/share/emacs/site-lisp/elpa/slime-2.23/slime-autoloads hides /usr/share= /emacs/site-lisp/elpa-src/slime-2.23/slime-autoloads /usr/share/emacs/site-lisp/elpa/slime-2.23/slime-pkg hides /usr/share/emacs= /site-lisp/elpa-src/slime-2.23/slime-pkg ~/work/code/org-mode/lisp/ob-forth hides /usr/share/emacs/26.1/lisp/org/ob-= forth ~/work/code/org-mode/lisp/org-gnus hides /usr/share/emacs/26.1/lisp/org/org= -gnus ~/work/code/org-mode/lisp/ob-keys hides /usr/share/emacs/26.1/lisp/org/ob-k= eys ~/work/code/org-mode/lisp/ob-ruby hides /usr/share/emacs/26.1/lisp/org/ob-r= uby ~/work/code/org-mode/lisp/ob-table hides /usr/share/emacs/26.1/lisp/org/ob-= table ~/work/code/org-mode/lisp/ob-python hides /usr/share/emacs/26.1/lisp/org/ob= -python ~/work/code/org-mode/lisp/org-archive hides /usr/share/emacs/26.1/lisp/org/= org-archive ~/work/code/org-mode/lisp/ob-vala hides /usr/share/emacs/26.1/lisp/org/ob-v= ala ~/work/code/org-mode/lisp/ob-fortran hides /usr/share/emacs/26.1/lisp/org/o= b-fortran ~/work/code/org-mode/lisp/org-src hides /usr/share/emacs/26.1/lisp/org/org-= src ~/work/code/org-mode/lisp/ob-mscgen hides /usr/share/emacs/26.1/lisp/org/ob= -mscgen ~/work/code/org-mode/lisp/org-table hides /usr/share/emacs/26.1/lisp/org/or= g-table ~/work/code/org-mode/lisp/org-crypt hides /usr/share/emacs/26.1/lisp/org/or= g-crypt ~/work/code/org-mode/lisp/org-bibtex hides /usr/share/emacs/26.1/lisp/org/o= rg-bibtex ~/work/code/org-mode/lisp/ob-screen hides /usr/share/emacs/26.1/lisp/org/ob= -screen ~/work/code/org-mode/lisp/ob-stan hides /usr/share/emacs/26.1/lisp/org/ob-s= tan ~/work/code/org-mode/lisp/org-duration hides /usr/share/emacs/26.1/lisp/org= /org-duration ~/work/code/org-mode/lisp/org-datetree hides /usr/share/emacs/26.1/lisp/org= /org-datetree ~/work/code/org-mode/lisp/ob-org hides /usr/share/emacs/26.1/lisp/org/ob-org ~/work/code/org-mode/lisp/ob-dot hides /usr/share/emacs/26.1/lisp/org/ob-dot ~/work/code/org-mode/lisp/ob-awk hides /usr/share/emacs/26.1/lisp/org/ob-awk ~/work/code/org-mode/lisp/org-id hides /usr/share/emacs/26.1/lisp/org/org-id ~/work/code/org-mode/lisp/ob-lilypond hides /usr/share/emacs/26.1/lisp/org/= ob-lilypond ~/work/code/org-mode/lisp/ob-shell hides /usr/share/emacs/26.1/lisp/org/ob-= shell ~/work/code/org-mode/lisp/ob-hledger hides /usr/share/emacs/26.1/lisp/org/o= b-hledger ~/work/code/org-mode/lisp/org-macro hides /usr/share/emacs/26.1/lisp/org/or= g-macro ~/work/code/org-mode/lisp/org-protocol hides /usr/share/emacs/26.1/lisp/org= /org-protocol ~/work/code/org-mode/lisp/org-footnote hides /usr/share/emacs/26.1/lisp/org= /org-footnote ~/work/code/org-mode/lisp/ob-sqlite hides /usr/share/emacs/26.1/lisp/org/ob= -sqlite ~/work/code/org-mode/lisp/ob-lisp hides /usr/share/emacs/26.1/lisp/org/ob-l= isp ~/work/code/org-mode/lisp/ob-perl hides /usr/share/emacs/26.1/lisp/org/ob-p= erl ~/work/code/org-mode/lisp/ob-comint hides /usr/share/emacs/26.1/lisp/org/ob= -comint ~/work/code/org-mode/lisp/ob-io hides /usr/share/emacs/26.1/lisp/org/ob-io ~/work/code/org-mode/lisp/ox-publish hides /usr/share/emacs/26.1/lisp/org/o= x-publish ~/work/code/org-mode/lisp/ox-latex hides /usr/share/emacs/26.1/lisp/org/ox-= latex ~/work/code/org-mode/lisp/ob-J hides /usr/share/emacs/26.1/lisp/org/ob-J ~/work/code/org-mode/lisp/ob-sql hides /usr/share/emacs/26.1/lisp/org/ob-sql ~/work/code/org-mode/lisp/org-ctags hides /usr/share/emacs/26.1/lisp/org/or= g-ctags ~/work/code/org-mode/lisp/ob-asymptote hides /usr/share/emacs/26.1/lisp/org= /ob-asymptote ~/work/code/org-mode/lisp/ob-groovy hides /usr/share/emacs/26.1/lisp/org/ob= -groovy ~/work/code/org-mode/lisp/org-capture hides /usr/share/emacs/26.1/lisp/org/= org-capture ~/work/code/org-mode/lisp/ob-exp hides /usr/share/emacs/26.1/lisp/org/ob-exp ~/work/code/org-mode/lisp/ob-haskell hides /usr/share/emacs/26.1/lisp/org/o= b-haskell ~/work/code/org-mode/lisp/org-version hides /usr/share/emacs/26.1/lisp/org/= org-version ~/work/code/org-mode/lisp/org-attach hides /usr/share/emacs/26.1/lisp/org/o= rg-attach ~/work/code/org-mode/lisp/ox-texinfo hides /usr/share/emacs/26.1/lisp/org/o= x-texinfo ~/work/code/org-mode/lisp/org-inlinetask hides /usr/share/emacs/26.1/lisp/o= rg/org-inlinetask ~/work/code/org-mode/lisp/org-irc hides /usr/share/emacs/26.1/lisp/org/org-= irc ~/work/code/org-mode/lisp/org-plot hides /usr/share/emacs/26.1/lisp/org/org= -plot ~/work/code/org-mode/lisp/ob-sed hides /usr/share/emacs/26.1/lisp/org/ob-sed ~/work/code/org-mode/lisp/org-lint hides /usr/share/emacs/26.1/lisp/org/org= -lint ~/work/code/org-mode/lisp/org-mhe hides /usr/share/emacs/26.1/lisp/org/org-= mhe ~/work/code/org-mode/lisp/ob-gnuplot hides /usr/share/emacs/26.1/lisp/org/o= b-gnuplot ~/work/code/org-mode/lisp/ox-icalendar hides /usr/share/emacs/26.1/lisp/org= /ox-icalendar ~/work/code/org-mode/lisp/ob-lua hides /usr/share/emacs/26.1/lisp/org/ob-lua ~/work/code/org-mode/lisp/ob-java hides /usr/share/emacs/26.1/lisp/org/ob-j= ava ~/work/code/org-mode/lisp/org-timer hides /usr/share/emacs/26.1/lisp/org/or= g-timer ~/work/code/org-mode/lisp/ob-octave hides /usr/share/emacs/26.1/lisp/org/ob= -octave ~/work/code/org-mode/lisp/ob-scheme hides /usr/share/emacs/26.1/lisp/org/ob= -scheme ~/work/code/org-mode/lisp/org-agenda hides /usr/share/emacs/26.1/lisp/org/o= rg-agenda ~/work/code/org-mode/lisp/ob-matlab hides /usr/share/emacs/26.1/lisp/org/ob= -matlab ~/work/code/org-mode/lisp/ob-maxima hides /usr/share/emacs/26.1/lisp/org/ob= -maxima ~/work/code/org-mode/lisp/ob-C hides /usr/share/emacs/26.1/lisp/org/ob-C ~/work/code/org-mode/lisp/org-info hides /usr/share/emacs/26.1/lisp/org/org= -info ~/work/code/org-mode/lisp/ox-ascii hides /usr/share/emacs/26.1/lisp/org/ox-= ascii ~/work/code/org-mode/lisp/org-list hides /usr/share/emacs/26.1/lisp/org/org= -list ~/work/code/org-mode/lisp/ob-abc hides /usr/share/emacs/26.1/lisp/org/ob-abc ~/work/code/org-mode/lisp/ox-md hides /usr/share/emacs/26.1/lisp/org/ox-md ~/work/code/org-mode/lisp/ob-js hides /usr/share/emacs/26.1/lisp/org/ob-js ~/work/code/org-mode/lisp/org-w3m hides /usr/share/emacs/26.1/lisp/org/org-= w3m ~/work/code/org-mode/lisp/org-feed hides /usr/share/emacs/26.1/lisp/org/org= -feed ~/work/code/org-mode/lisp/ob-lob hides /usr/share/emacs/26.1/lisp/org/ob-lob ~/work/code/org-mode/lisp/ob-ebnf hides /usr/share/emacs/26.1/lisp/org/ob-e= bnf ~/work/code/org-mode/lisp/org-mouse hides /usr/share/emacs/26.1/lisp/org/or= g-mouse ~/work/code/org-mode/lisp/ob hides /usr/share/emacs/26.1/lisp/org/ob ~/work/code/org-mode/lisp/ob-ledger hides /usr/share/emacs/26.1/lisp/org/ob= -ledger ~/work/code/org-mode/lisp/ob-sass hides /usr/share/emacs/26.1/lisp/org/ob-s= ass ~/work/code/org-mode/lisp/ob-eval hides /usr/share/emacs/26.1/lisp/org/ob-e= val ~/work/code/org-mode/lisp/ob-coq hides /usr/share/emacs/26.1/lisp/org/ob-coq ~/work/code/org-mode/lisp/ob-latex hides /usr/share/emacs/26.1/lisp/org/ob-= latex ~/work/code/org-mode/lisp/org-eww hides /usr/share/emacs/26.1/lisp/org/org-= eww ~/work/code/org-mode/lisp/org-bbdb hides /usr/share/emacs/26.1/lisp/org/org= -bbdb ~/work/code/org-mode/lisp/ob-picolisp hides /usr/share/emacs/26.1/lisp/org/= ob-picolisp ~/work/code/org-mode/lisp/ob-emacs-lisp hides /usr/share/emacs/26.1/lisp/or= g/ob-emacs-lisp ~/work/code/org-mode/lisp/ox-beamer hides /usr/share/emacs/26.1/lisp/org/ox= -beamer ~/work/code/org-mode/lisp/ob-ref hides /usr/share/emacs/26.1/lisp/org/ob-ref ~/work/code/org-mode/lisp/ob-shen hides /usr/share/emacs/26.1/lisp/org/ob-s= hen ~/work/code/org-mode/lisp/org-rmail hides /usr/share/emacs/26.1/lisp/org/or= g-rmail ~/work/code/org-mode/lisp/ob-calc hides /usr/share/emacs/26.1/lisp/org/ob-c= alc ~/work/code/org-mode/lisp/ob-tangle hides /usr/share/emacs/26.1/lisp/org/ob= -tangle ~/work/code/org-mode/lisp/ox-odt hides /usr/share/emacs/26.1/lisp/org/ox-odt ~/work/code/org-mode/lisp/ox-org hides /usr/share/emacs/26.1/lisp/org/ox-org ~/work/code/org-mode/lisp/org-element hides /usr/share/emacs/26.1/lisp/org/= org-element ~/work/code/org-mode/lisp/org-colview hides /usr/share/emacs/26.1/lisp/org/= org-colview ~/work/code/org-mode/lisp/ox hides /usr/share/emacs/26.1/lisp/org/ox ~/work/code/org-mode/lisp/org-docview hides /usr/share/emacs/26.1/lisp/org/= org-docview ~/work/code/org-mode/lisp/org-compat hides /usr/share/emacs/26.1/lisp/org/o= rg-compat ~/work/code/org-mode/lisp/org-indent hides /usr/share/emacs/26.1/lisp/org/o= rg-indent ~/work/code/org-mode/lisp/org-habit hides /usr/share/emacs/26.1/lisp/org/or= g-habit ~/work/code/org-mode/lisp/org-macs hides /usr/share/emacs/26.1/lisp/org/org= -macs ~/work/code/org-mode/lisp/ob-css hides /usr/share/emacs/26.1/lisp/org/ob-css ~/work/code/org-mode/lisp/ob-processing hides /usr/share/emacs/26.1/lisp/or= g/ob-processing ~/work/code/org-mode/lisp/ob-ocaml hides /usr/share/emacs/26.1/lisp/org/ob-= ocaml ~/work/code/org-mode/lisp/org-clock hides /usr/share/emacs/26.1/lisp/org/or= g-clock ~/work/code/org-mode/lisp/ob-core hides /usr/share/emacs/26.1/lisp/org/ob-c= ore ~/work/code/org-mode/lisp/ob-makefile hides /usr/share/emacs/26.1/lisp/org/= ob-makefile ~/work/code/org-mode/lisp/org-faces hides /usr/share/emacs/26.1/lisp/org/or= g-faces ~/work/code/org-mode/lisp/ob-ditaa hides /usr/share/emacs/26.1/lisp/org/ob-= ditaa ~/work/code/org-mode/lisp/org-pcomplete hides /usr/share/emacs/26.1/lisp/or= g/org-pcomplete ~/work/code/org-mode/lisp/org-eshell hides /usr/share/emacs/26.1/lisp/org/o= rg-eshell ~/work/code/org-mode/lisp/ox-html hides /usr/share/emacs/26.1/lisp/org/ox-h= tml ~/work/code/org-mode/lisp/ob-R hides /usr/share/emacs/26.1/lisp/org/ob-R ~/work/code/org-mode/lisp/org hides /usr/share/emacs/26.1/lisp/org/org ~/work/code/org-mode/lisp/org-loaddefs hides /usr/share/emacs/26.1/lisp/org= /org-loaddefs ~/work/code/org-mode/lisp/ob-plantuml hides /usr/share/emacs/26.1/lisp/org/= ob-plantuml ~/work/code/org-mode/lisp/ox-man hides /usr/share/emacs/26.1/lisp/org/ox-man ~/work/code/org-mode/lisp/org-mobile hides /usr/share/emacs/26.1/lisp/org/o= rg-mobile ~/work/code/org-mode/lisp/org-install hides /usr/share/emacs/26.1/lisp/org/= org-install ~/work/code/org-mode/lisp/ob-clojure hides /usr/share/emacs/26.1/lisp/org/o= b-clojure ~/work/code/org-mode/lisp/org-entities hides /usr/share/emacs/26.1/lisp/org= /org-entities /usr/share/emacs/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/= 26.1/lisp/language/thai-word Features: (shadow sort bbdb-message mail-extr emacsbug sendmail misearch multi-isearch cl-print debug password-store f winner helm-command helm-elisp helm-eval edebug helm-info helm-mode helm-files helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp helm-utils helm-types helm-help helm-posframe posframe helm helm-source helm-multi-match helm-lib wdired flycheck elec-pair default cperl-mode ps-print ps-print-loaddefs ps-def lpr eieio-opt speedbar sb-image ezimage dframe cal-iso face-remap spaceline-all-the-icons spaceline-all-the-icons-separators spaceline-all-the-icons-segments all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons memoize spaceline powerline powerline-separators powerline-themes quelpa-use-package quelpa lisp-mnt help-fns radix-tree gnus-icalendar org-capture gnus-art mm-uu mml2015 mm-view mml-smime smime dig cus-edit ispell view cal-china lunar solar cal-dst cal-hebrew cal-julian holidays hol-loaddefs org-duration org-bullets org-indent org-eww org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win org-docview doc-view image-mode org-bibtex bibtex org-bbdb org-w3m git-auto-commit-mode vc-git appt direnv alert log4e notifications gntp flx-ido flx yahoo-weather magit-gerrit magithub magithub-dash magithub-notification magithub-orgs magithub-issue-tricks magithub-issue-post magithub-edit-mode magithub-repo magithub-ci magithub-issue magithub-label magithub-user magithub-core magithub-faces magithub-settings recentf tree-widget markdown-mode color bug-reference ghub+ apiwrap ghub-graphql treepy gsexp ghub url-http url-gw nsm url-auth let-alist s magit-rockstar magit-tramp spacemacs-light-theme spacemacs-common remember-theme twittering-mode tls gnutls url url-proxy url-privacy url-expand url-history url-cookie url-domsuf url-util mailcap tabify xmlunicode quail xmlunicode-missing-list xmlunicode-character-list php-extras thingatpt company org-mime ox-org ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-habit org-agenda orgit org-element avl-tree generator magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-ditaa ob-shell ob-dot ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-emacs-lisp ob-core ob-eval org-compat org-macs org-loaddefs find-func noutline outline bbdb-mua bbdb-com bbdb bbdb-site timezone icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs windmove dbus xml time url-methods loccur use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key use-package-core docker-tramp tramp-cache tramp tramp-compat tramp-loaddefs trampver ucs-normalize parse-time jka-compr whiteboard-theme magit-wip magit-log which-func imenu magit-diff smerge-mode diff-mode git-commit log-edit message rmc puny rfc822 mml mml-sec epa epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor warnings term disp-table ehelp esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util dired dired-loaddefs async-bytecomp async shell pcomplete comint ring server ansi-color magit-mode transient cl-extra help-mode format-spec magit-git magit-section magit-utils crm ido help-at-pt gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit emojify derived edmacro kmacro advice apropos tar-mode json map subr-x ht dash auto-compile easy-mmode packed pcase allout cus-start cus-load debian-el rx gh-common marshal eieio-compat org2blog-autoloads finder-inf cl info slime-autoloads package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib devhelp time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 2088011 200045) (symbols 48 72377 1) (miscs 40 3011 6326) (strings 32 531726 32691) (string-bytes 1 20468411) (vectors 16 122885) (vector-slots 8 3552362 114084) (floats 8 2029 845) (intervals 56 24080 863) (buffers 992 54)) --=20 http://hexmode.com/ Whoever closes his ear to the cry of the poor will himself call out and not be answered. =E2=80=94 Proverbs 21:13 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 13 00:38:48 2019 Received: (at 36598) by debbugs.gnu.org; 13 Jul 2019 04:38:48 +0000 Received: from localhost ([127.0.0.1]:41311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm9o8-0002l7-3o for submit@debbugs.gnu.org; Sat, 13 Jul 2019 00:38:48 -0400 Received: from quimby.gnus.org ([80.91.231.51]:56074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm9o5-0002kw-Uy for 36598@debbugs.gnu.org; Sat, 13 Jul 2019 00:38:46 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm9o2-0005gY-8A; Sat, 13 Jul 2019 06:38:44 +0200 From: Lars Ingebrigtsen To: mah@everybody.org (Mark A. Hershberger) Subject: Re: bug#36598: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1?= =?utf-8?Q?000=E2=80=99?= is not a safe directory because it is a symlink") References: <87muhkr79y.fsf@silk.nichework.com> Date: Sat, 13 Jul 2019 06:38:41 +0200 In-Reply-To: <87muhkr79y.fsf@silk.nichework.com> (Mark A. Hershberger's message of "Thu, 11 Jul 2019 10:10:49 -0400") Message-ID: <87k1cmwnu6.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: 36598@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 13 08:46:39 2019 Received: (at 36598) by debbugs.gnu.org; 13 Jul 2019 12:46:39 +0000 Received: from localhost ([127.0.0.1]:41561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmHQE-0001RM-TD for submit@debbugs.gnu.org; Sat, 13 Jul 2019 08:46:39 -0400 Received: from mail-io1-f45.google.com ([209.85.166.45]:42461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmHQD-0001R8-3f for 36598@debbugs.gnu.org; Sat, 13 Jul 2019 08:46:37 -0400 Received: by mail-io1-f45.google.com with SMTP id u19so26229495ior.9 for <36598@debbugs.gnu.org>; Sat, 13 Jul 2019 05:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Rr+XI+UJ/xxqibbY7DXtjwpdtwtxn400mHKL3AN/K/k=; b=L1OZOWoZm1Wza0/GXc177FCn/VvwWB6BoEtwOunmXmQ6WMCfz66jabDIV9/XHlfa+Q EoySxGUuImr4o6QIZegm6jw7bgqCyTc3wQt1ztK8wmztX4DxNG2HLSonEhyx7xxMxfzd 67pEe9UbH5N82AGWxMB62qPJyYxmxzf0YVk+Nsnwq10CVWvSYD75gWqWAImCh8qRqpAx YVMB74Ue/hCCqvq3NIAuA0wIRuu22f147ogAicCOF4vgW8/XT3OnLhGKqUChJBST/JcQ NSzrb9dPxgGu0MdONlf9n1F0KjzlGJN9boaN4iZ6S14DfI+6XAL86yADciWaNfOTOgqH zNew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Rr+XI+UJ/xxqibbY7DXtjwpdtwtxn400mHKL3AN/K/k=; b=OcxJtHORp2UpMqHEciI1MLNJEX+FqjDxLonARZ9v2rgMh48Mc/YHCqUN9L/dIO5/mQ XZRP7kJFt/3+db+stJ1fhZ6LX6d3VyY29dqG6ybvlvc+71yFrt65jUc/Gcb4nihGRbaJ q3JW+VqE7mpMhKAozpTJQ6anIqulLPFy+fmlMtXNb7zdAXTBbhbOzS4cCdn00BmgowvF xvjh5T4HSSsLprA8lTQSvZyMNM/POFJx9Pzy0D/U6oWSfeUjDrTfpmaLG8zF3TBORzNu LbrOl5BZWvnnY/Nw9zaIsYh3ebYVmQRKON2rXUeKNWkHbTY49s1lKvKEt3Tl15SGVEYw f4cQ== X-Gm-Message-State: APjAAAWat16yMu/rRCqhpbvKU65+wHrQYXH8hFUoi2vYmAyZLa1zI3ST ZU6xRnsQ4CAqx/FO8H65zdVOSj77 X-Google-Smtp-Source: APXvYqy47edwMo4YThyGa7j/0WIM8WaAKuybgcOcYThHbuvGCJFcXnm5jqLgRl5NJuvLybXecPUFaw== X-Received: by 2002:a02:c549:: with SMTP id g9mr16523012jaj.14.1563021991194; Sat, 13 Jul 2019 05:46:31 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id m25sm6730504ion.35.2019.07.13.05.46.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 13 Jul 2019 05:46:30 -0700 (PDT) From: Noam Postavsky To: mah@everybody.org (Mark A. Hershberger) Subject: Re: bug#36598: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1?= =?utf-8?Q?000=E2=80=99?= is not a safe directory because it is a symlink") References: <87muhkr79y.fsf@silk.nichework.com> Date: Sat, 13 Jul 2019 08:46:29 -0400 In-Reply-To: <87muhkr79y.fsf@silk.nichework.com> (Mark A. Hershberger's message of "Thu, 11 Jul 2019 10:10:49 -0400") Message-ID: <87r26u14re.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: 36598@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 Do you know who that is? > should also change the value of server-socket-dir. > > > In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4) > of 2019-02-03, modified by Debian built on zam904 Debian, perhaps? From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 13 09:06:12 2019 Received: (at 36598) by debbugs.gnu.org; 13 Jul 2019 13:06:12 +0000 Received: from localhost ([127.0.0.1]:41585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmHjA-0001ye-8r for submit@debbugs.gnu.org; Sat, 13 Jul 2019 09:06:12 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmHj8-0001yW-PG for 36598@debbugs.gnu.org; Sat, 13 Jul 2019 09:06:11 -0400 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 1hmHj4-0000lP-67; Sat, 13 Jul 2019 15:06:08 +0200 From: Lars Ingebrigtsen To: Noam Postavsky Subject: Re: bug#36598: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1?= =?utf-8?Q?000=E2=80=99?= is not a safe directory because it is a symlink") References: <87muhkr79y.fsf@silk.nichework.com> <87r26u14re.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUFBhFecKcPGUICAw0H CRUdLXALECkJDBx/kThDAAACLElEQVQ4jV3UTW/jIBAGYNSw27NX4r4ayeRqiaq5Rlu0vjZWSe9s Mr5GCoG/v+9gk344t3kyzDBgq7LfK19y7EPoui4E4uKV8i9KOaXHwjGEA8AEsnNJHuCc8gBqMBHP pUiGxHOkGsdaH+B9qdCtYJlLSS/qMTMRfwLJSIAHg5DlBgYZUv1F/ZziRPkbSFeaE2pwfwda4SGc xm9QKiiNdktd6vAFHiPRdgEZCmrISoAfIZg3mZXAwRiMJHndwKMI4iKonT4yAOfv8HAHA+iMZSkh GwzR/saBrBkB+1thekXLJd8qhCAZSoorA1C5NGA++X2F7g3wd74dGtQaV6UOrwuEBtKU3wMkY0w3 mvoep7Gd034BPgF0ulmiPmA8OcmpXpQ2vdm4x3QWIJlb0XqBziBjf8a/qQIm5T3STNcBLmesj2d6 L7UGAIegnGQ0kIxRMkxwrmX0od5DXwB4Nhvvua/A8wgYV1CD9kwRXdloBXwS2DjnnhQTLh5ZtiM6 rcUl7obBWmwkAhDTtbgaKmzZxhW0WkBShqet5XjMACwv1QFuBRuPDPUNNiLD7jQTdmJLTr7ewZax O2kZoi1/0vhlqR3zHHsUz6mOpIF6joAJwBct+5AamwaZ8csAOal1g06g5BF0GeQNuMMOq8jOM18H OWq/lACQ7Q/H8y+KVydj9Wu8QqCI871Kk58gn0N9cbb/vsJz/cjIhZ9m6bJBpvDx0ElqDEu8v0fx nZjR6X/Glg5bq1IKowAAAABJRU5ErkJggg== Date: Sat, 13 Jul 2019 15:06:06 +0200 In-Reply-To: <87r26u14re.fsf@gmail.com> (Noam Postavsky's message of "Sat, 13 Jul 2019 08:46:29 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Noam Postavsky writes: > 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/e [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: "Mark A. Hershberger" , 36598@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Noam Postavsky writes: > 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 > > Do you know who that is? It's probably this code? But it works for me; it just sets up a symlink from /tmp for compatibility with older emacsclients, I think? (defun server-ensure-safe-dir (dir) [...] (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))))) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 13 10:30:59 2019 Received: (at 36598) by debbugs.gnu.org; 13 Jul 2019 14:30:59 +0000 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 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==; 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 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 13 Jul 2019 15:30:50 +0100 From: phillip.lord@russet.org.uk To: Lars Ingebrigtsen Subject: =?UTF-8?Q?Re=3A_bug=2336598=3A_26=2E1=3B_=28error_=22=E2=80=98/t?= =?UTF-8?Q?mp/emacs1000=E2=80=99_is_not_a_safe_directory_because_it_is_a_s?= =?UTF-8?Q?ymlink=22=29?= In-Reply-To: <87k1cmwnu6.fsf@mouse.gnus.org> References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> Message-ID: X-Sender: phillip.lord@russet.org.uk User-Agent: Roundcube Webmail/1.3.8 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-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: bug-gnu-emacs , mah@everybody.org, 36598@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 13 10:45:24 2019 Received: (at 36598) by debbugs.gnu.org; 13 Jul 2019 14:45:24 +0000 Received: from localhost ([127.0.0.1]:43054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmJHA-0001Ek-AI for submit@debbugs.gnu.org; Sat, 13 Jul 2019 10:45:24 -0400 Received: from quimby.gnus.org ([80.91.231.51]:35048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmJH8-0001CO-Dk for 36598@debbugs.gnu.org; Sat, 13 Jul 2019 10:45:22 -0400 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 1hmJH5-0001W8-2d; Sat, 13 Jul 2019 16:45:21 +0200 From: Lars Ingebrigtsen To: phillip.lord@russet.org.uk Subject: Re: bug#36598: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1?= =?utf-8?Q?000=E2=80=99?= is not a safe directory because it is a symlink") References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUHARQQAh8BAAVcPVE2 CSs0BCUGARIiAiLe6hVeAAACeUlEQVQ4jW2US3ebMBBGBfWRt5Ltg7dkEsQ2riDZloDdbRpHZSsU d7x14tff70jYaeJ0NnB05/HNaIDp/1vB5Ceb9I+maS7ACddfQFEF0DQVC6S4iKjkJICdPl5mowgm G0M5LwmB4dI8m68AbbRsGl1KKaJPwCGrm1oXPrY/iYIDA4W13upCMO6JIC56AKibZ138YhyZoHPe Z/Sg9sMxHNGSO4FTKrBhanOOCgNgZ5D2QKAKJKHAqAch1bzllNVahkjYEmjzAAqzcaQwQg+4jRiY P6e7aX0Vy9ERIRlLN9flsgd0xJkXRy2x5dzcm63PNfe+2x+cClF5ti3b38b4iCf1iF1Ies+oxkuJ 62ztI/b4iN/6cgmpui4fIN+TsPKFeh/rIDFhkmVPoDLjwTWBWs8OY60XXi4oyHyNMuO8q8f6NtKT ivnOM5W1dWOecs7sOEy2ngkCMeQUMd8vqDsbTW8BeLPxgCwzRQtWISZSy0gmUy58jRyyvTk6GiFS qsErGy5EJFgKR8hNuQemIh5N80WXJAdBVwwwzIatbiGRSPLXsQOMRFgGd3MHz4uDG3NJ8/45gtRu qIZq4eb7unx7i8UgkgNcHVa7qZxSxBuAg4ecGo2d6368bvCow8K5IcCKNIFSMVwNZwec0JIRoJHA CILR+8sdYjdD1jcY7MrREJR9oPtF3r32QJ1pbncuxQGrdh7EH9jNRqWrarVh/1KdjTwmCS3Kx7PE Hmj/HBz8bgF6qdAFcjSY340exW4y9CNJE/LzML7CiMcoZScoIpXi1IZyq/ffg7+PFN+LnD7zEYZl +CDoBOhLEO8gaOjBOKEyLD4D/1KdgJXyL6mawm1Ql9iqAAAAAElFTkSuQmCC Date: Sat, 13 Jul 2019 16:45:18 +0200 In-Reply-To: (phillip lord's message of "Sat, 13 Jul 2019 15:30:50 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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' [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: mah@everybody.org, 36598@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 13 11:56:33 2019 Received: (at 36598) by debbugs.gnu.org; 13 Jul 2019 15:56:33 +0000 Received: from localhost ([127.0.0.1]:43225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmKO0-0005CJ-KN for submit@debbugs.gnu.org; Sat, 13 Jul 2019 11:56:33 -0400 Received: from cloud103.planethippo.com ([78.129.138.110]:50540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmKNu-0005Bt-Qw for 36598@debbugs.gnu.org; Sat, 13 Jul 2019 11:56:30 -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=szbCO2hY/FcBiNw81Qw/9f2nyIBXzjDzLjvpTrDXzbo=; b=TwXG7YOtJbiMURicFNkm3WUVQr mq1/H18pw2QXXRz93Gk5LzU90tPP/lpVlAAUivVSoYYswiAUygmQYjZgtfy3w6cNcfkdiF0SLS9/t W8Cey5JQGg6NHaYnIKNOaSWXZ5o/MgkDSvy/JdoQA2luCbYiFvBJjPNqEpuYiC697+i3BhV/nwPi9 y4HnrH+/I1csMjD2D3e31XzfFnQmNPq2R+ZrUtiVtW6CwQPXKK+vX8BYrHyF5TejVvNWL+kCqh6WW eH838+j5fA78xWqm6Xonknivvr5geplgqeibEDaBGjapYeWbGSZ/oZegnnUPVvX/zUn+bcK8hx9Xv s1/qkjUQ==; Received: from [::1] (port=41208 helo=cloud103.planethippo.com) by cloud103.planethippo.com with esmtpa (Exim 4.92) (envelope-from ) id 1hmKNn-0006fm-UQ; Sat, 13 Jul 2019 16:56:20 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sat, 13 Jul 2019 16:56:19 +0100 From: phillip.lord@russet.org.uk To: Lars Ingebrigtsen Subject: =?UTF-8?Q?Re=3A_bug=2336598=3A_26=2E1=3B_=28error_=22=E2=80=98/t?= =?UTF-8?Q?mp/emacs1000=E2=80=99_is_not_a_safe_directory_because_it_is_a_s?= =?UTF-8?Q?ymlink=22=29?= In-Reply-To: References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> Message-ID: <44a502116d2c0568d120b7328913b26a@russet.org.uk> X-Sender: phillip.lord@russet.org.uk User-Agent: Roundcube Webmail/1.3.8 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-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: mah@everybody.org, 36598@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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). Phil Debugger entered--Lisp error: (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink") signal(error ("‘/tmp/emacs1000’ is not a safe directory because it is a symlink")) error("`%s' is not a safe directory because %s" "/tmp/emacs1000" "it is a symlink") (progn (error "`%s' is not a safe directory because %s" (expand-file-name dir) unsafe)) (if unsafe (progn (error "`%s' is not a safe directory because %s" (expand-file-name dir) unsafe))) (let* ((uid (nth 2 attrs)) (w32 (eq system-type (quote windows-nt))) (unsafe (cond ((not (eq t (car attrs))) (if (null attrs) "its attributes can't be checked" (format "it is a %s" (if ... "symlink" "file")))) ((and w32 (= 0 uid)) (display-warning (quote server) (format-message "Using `%s' to store Emacs-server authentication files.\nDirectories on FAT32 filesystems are NOT secure against tampering.\nSee variable `server-auth-dir' for details." (file-name-as-directory dir)) :warning) nil) ((and (/= uid (user-uid)) (or (not w32) (/= uid 544) (/= ... 500))) (format "it is not owned by you (owner = %s (%d))" (user-full-name uid) uid)) (w32 nil) ((/= 0 (logand 63 (file-modes dir))) (format "it is accessible by others (%03o)" (file-modes dir))) (t nil)))) (if unsafe (progn (error "`%s' is not a safe directory because %s" (expand-file-name dir) unsafe)))) (let ((attrs (file-attributes dir (quote integer)))) (if attrs nil (let* ((old (default-file-modes))) (unwind-protect (progn (progn (set-default-file-modes 448) 448) (make-directory dir t)) (let* ((v old)) (progn (set-default-file-modes v) v)))) (setq attrs (file-attributes dir (quote integer)))) (let* ((uid (nth 2 attrs)) (w32 (eq system-type (quote windows-nt))) (unsafe (cond ((not (eq t ...)) (if (null attrs) "its attributes can't be checked" (format "it is a %s" ...))) ((and w32 (= 0 uid)) (display-warning (quote server) (format-message "Using `%s' to store Emacs-server authentication files.\nDirectories on FAT32 filesystems are NOT secure against tampering.\nSee variable `server-auth-dir' for details." ...) :warning) nil) ((and (/= uid ...) (or ... ... ...)) (format "it is not owned by you (owner = %s (%d))" (user-full-name uid) uid)) (w32 nil) ((/= 0 (logand 63 ...)) (format "it is accessible by others (%03o)" (file-modes dir))) (t nil)))) (if unsafe (progn (error "`%s' is not a safe directory because %s" (expand-file-name dir) unsafe))))) server-ensure-safe-dir("/tmp/emacs1000") (if leave-dead (progn (if (eq t leave-dead) nil (server-log (message "Server stopped"))) (setq server-process nil)) (server-ensure-safe-dir server-dir) (if server-process (progn (server-log (message "Restarting server")))) (let* ((old (default-file-modes))) (unwind-protect (progn (progn (set-default-file-modes 448) 448) (add-hook (quote suspend-tty-functions) (quote server-handle-suspend-tty)) (add-hook (quote delete-frame-functions) (quote server-handle-delete-frame)) (add-hook (quote kill-emacs-query-functions) (quote server-kill-emacs-query-function)) (add-hook (quote kill-emacs-hook) (quote server-force-stop) t) (setq server-process (apply (function make-network-process) :name server-name :server t :noquery t :sentinel (function server-sentinel) :filter (function server-process-filter) :use-external-socket t :coding (quote raw-text-unix) (if server-use-tcp (list :family ... :service ... :host ... :plist ...) (list :family ... :service server-file :plist ...)))) (if server-process nil (error "Could not start server process")) (process-put server-process :server-file server-file) (if server-use-tcp (progn (let (...) (process-put server-process :auth-key auth-key) (let ... ...))))) (let* ((v old)) (progn (set-default-file-modes v) v))))) (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)) (server-file (expand-file-name server-name server-dir))) (if server-process (progn (condition-case nil (progn (delete-process server-process)) (error nil)))) (if (not (eq t (server-running-p server-name))) (condition-case nil (progn (let (delete-by-moving-to-trash) (delete-file server-file))) (error nil)) (setq server-mode nil) (display-warning (quote server) (concat "Unable to start the Emacs server.\n" (format "There is an existing Emacs server, named %S.\n" server-name) (substitute-command-keys "To start the server in this Emacs process, stop the existing\nserver or call `\\[server-force-delete]' to forcibly disconnect it.")) :warning) (setq leave-dead t)) (while server-clients (server-delete-client (car server-clients))) (if leave-dead (progn (if (eq t leave-dead) nil (server-log (message "Server stopped"))) (setq server-process nil)) (server-ensure-safe-dir server-dir) (if server-process (progn (server-log (message "Restarting server")))) (let* ((old (default-file-modes))) (unwind-protect (progn (progn (set-default-file-modes 448) 448) (add-hook (quote suspend-tty-functions) (quote server-handle-suspend-tty)) (add-hook (quote delete-frame-functions) (quote server-handle-delete-frame)) (add-hook (quote kill-emacs-query-functions) (quote server-kill-emacs-query-function)) (add-hook (quote kill-emacs-hook) (quote server-force-stop) t) (setq server-process (apply (function make-network-process) :name server-name :server t :noquery t :sentinel (function server-sentinel) :filter (function server-process-filter) :use-external-socket t :coding (quote raw-text-unix) (if server-use-tcp ... ...))) (if server-process nil (error "Could not start server process")) (process-put server-process :server-file server-file) (if server-use-tcp (progn (let ... ... ...)))) (let* ((v old)) (progn (set-default-file-modes v) v)))))) (progn (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)) (server-file (expand-file-name server-name server-dir))) (if server-process (progn (condition-case nil (progn (delete-process server-process)) (error nil)))) (if (not (eq t (server-running-p server-name))) (condition-case nil (progn (let (delete-by-moving-to-trash) (delete-file server-file))) (error nil)) (setq server-mode nil) (display-warning (quote server) (concat "Unable to start the Emacs server.\n" (format "There is an existing Emacs server, named %S.\n" server-name) (substitute-command-keys "To start the server in this Emacs process, stop the existing\nserver or call `\\[server-force-delete]' to forcibly disconnect it.")) :warning) (setq leave-dead t)) (while server-clients (server-delete-client (car server-clients))) (if leave-dead (progn (if (eq t leave-dead) nil (server-log (message "Server stopped"))) (setq server-process nil)) (server-ensure-safe-dir server-dir) (if server-process (progn (server-log (message "Restarting server")))) (let* ((old (default-file-modes))) (unwind-protect (progn (progn (set-default-file-modes 448) 448) (add-hook (quote suspend-tty-functions) (quote server-handle-suspend-tty)) (add-hook (quote delete-frame-functions) (quote server-handle-delete-frame)) (add-hook (quote kill-emacs-query-functions) (quote server-kill-emacs-query-function)) (add-hook (quote kill-emacs-hook) (quote server-force-stop) t) (setq server-process (apply ... :name server-name :server t :noquery t :sentinel ... :filter ... :use-external-socket t :coding ... ...)) (if server-process nil (error "Could not start server process")) (process-put server-process :server-file server-file) (if server-use-tcp (progn ...))) (let* ((v old)) (progn (set-default-file-modes v) v))))))) (if (or (not server-clients) (cond ((and (daemonp) (null (cdr (frame-list))) (eq (selected-frame) terminal-frame)) leave-dead) (inhibit-prompt t) (t (yes-or-no-p "The current server still has clients; delete them? ")))) (progn (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)) (server-file (expand-file-name server-name server-dir))) (if server-process (progn (condition-case nil (progn (delete-process server-process)) (error nil)))) (if (not (eq t (server-running-p server-name))) (condition-case nil (progn (let (delete-by-moving-to-trash) (delete-file server-file))) (error nil)) (setq server-mode nil) (display-warning (quote server) (concat "Unable to start the Emacs server.\n" (format "There is an existing Emacs server, named %S.\n" server-name) (substitute-command-keys "To start the server in this Emacs process, stop the existing\nserver or call `\\[server-force-delete]' to forcibly disconnect it.")) :warning) (setq leave-dead t)) (while server-clients (server-delete-client (car server-clients))) (if leave-dead (progn (if (eq t leave-dead) nil (server-log (message "Server stopped"))) (setq server-process nil)) (server-ensure-safe-dir server-dir) (if server-process (progn (server-log (message "Restarting server")))) (let* ((old (default-file-modes))) (unwind-protect (progn (progn ... 448) (add-hook ... ...) (add-hook ... ...) (add-hook ... ...) (add-hook ... ... t) (setq server-process ...) (if server-process nil ...) (process-put server-process :server-file server-file) (if server-use-tcp ...)) (let* (...) (progn ... v)))))))) server-start(nil) funcall-interactively(server-start nil) call-interactively(server-start record nil) command-execute(server-start record) execute-extended-command(nil "server-start" "server-start") funcall-interactively(execute-extended-command nil "server-start" "server-start") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 13 21:43:12 2019 Received: (at 36598) by debbugs.gnu.org; 14 Jul 2019 01:43:12 +0000 Received: from localhost ([127.0.0.1]:43652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmTXj-0002IA-Vp for submit@debbugs.gnu.org; Sat, 13 Jul 2019 21:43:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmTXi-0002Hs-69 for 36598@debbugs.gnu.org; Sat, 13 Jul 2019 21:43:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hmTXc-0005kD-MS; Sat, 13 Jul 2019 21:43:04 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hmTXb-0005X7-4S; Sat, 13 Jul 2019 21:43:03 -0400 From: Glenn Morris To: phillip.lord@russet.org.uk Subject: Re: bug#36598: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1?= =?utf-8?Q?000=E2=80=99?= is not a safe directory because it is a symlink") References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> <44a502116d2c0568d120b7328913b26a@russet.org.uk> X-Spook: Trojan BLU-97 A/B Cartel halcon Crash Matamoros Bruxelles X-Ran: Okq[{F9C25kegJE*Rt^nb-yt^ (phillip lord's message of "Sat, 13 Jul 2019 16:56:19 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36598 Cc: Lars Ingebrigtsen , 36598@debbugs.gnu.org, mah@everybody.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) phillip.lord@russet.org.uk wrote: > 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). Note that running "make check" in master creates this link and leaves it behind, causing this error to occur for any released Emacs version. It's a bit irritating. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 14 07:44:15 2019 Received: (at 36598) by debbugs.gnu.org; 14 Jul 2019 11:44:15 +0000 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 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 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 From: Lars Ingebrigtsen To: phillip.lord@russet.org.uk Subject: Re: bug#36598: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1?= =?utf-8?Q?000=E2=80=99?= is not a safe directory because it is a symlink") References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> <44a502116d2c0568d120b7328913b26a@russet.org.uk> 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= Date: Sun, 14 Jul 2019 13:44:05 +0200 In-Reply-To: <44a502116d2c0568d120b7328913b26a@russet.org.uk> (phillip lord's message of "Sat, 13 Jul 2019 16:56:19 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 probl [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: mah@everybody.org, 36598@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 14 15:11:42 2019 Received: (at 36598) by debbugs.gnu.org; 14 Jul 2019 19:11:42 +0000 Received: from localhost ([127.0.0.1]:45985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmjuQ-0004cn-6w for submit@debbugs.gnu.org; Sun, 14 Jul 2019 15:11:42 -0400 Received: from cloud103.planethippo.com ([78.129.138.110]:57662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmjuN-0004cW-92 for 36598@debbugs.gnu.org; Sun, 14 Jul 2019 15:11:41 -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=cMOFVR5qRCiB2tz4Tdwp0AWmNVexBFDPRoAZyEZYZxk=; b=htTzokCu0XUVxbLTg5AxL/SsjR qqbm7EJrL3CsbXMy2YJbWYV7LQJ6i/winOh1j9fCaoR4jpoBXXb8+RAffdB2yvGNc8bU0eklt/9M3 657Y3APf+4OFXdY6318r5wc2Q1S1POF16/AGh4JVCBq/MU8n/NNn4oM7/AY6VCxmXK+IqMKnQQNLg n5vIo0KAXMt70ak/ie4azDVpm6jXOhRfbZWeQHAWdxZlGEDjN05amNjS+1PHUVvTqz38cDaEemjp8 M3KCLf+A3eLxhzA3M4qshcR9SyCHRuqcziv/wYeeBuoBW3oBgA/nEcczof+l0wHt3qayRV5Re2emy 9NdTXQmw==; Received: from [::1] (port=48326 helo=cloud103.planethippo.com) by cloud103.planethippo.com with esmtpa (Exim 4.92) (envelope-from ) id 1hmjuF-0000vq-In; Sun, 14 Jul 2019 20:11:31 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 14 Jul 2019 20:11:31 +0100 From: phillip.lord@russet.org.uk To: Lars Ingebrigtsen Subject: =?UTF-8?Q?Re=3A_bug=2336598=3A_26=2E1=3B_=28error_=22=E2=80=98/t?= =?UTF-8?Q?mp/emacs1000=E2=80=99_is_not_a_safe_directory_because_it_is_a_s?= =?UTF-8?Q?ymlink=22=29?= In-Reply-To: References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> <44a502116d2c0568d120b7328913b26a@russet.org.uk> Message-ID: <20a62c04ad67dc64665b32d7a31cfe8b@russet.org.uk> X-Sender: phillip.lord@russet.org.uk User-Agent: Roundcube Webmail/1.3.8 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-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: mah@everybody.org, 36598@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2019-07-14 12:44, Lars Ingebrigtsen wrote: > 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? Nearly. I think it breaks emacs-26 not the emacsclient. I haven't check the emacsclient code, but I guess Stefan was aiming for the situation when someone is using (say) emacsclient-26 with emacs-27. This is all a bit of a guess, though. > I may be reading the region history wrong, though. > > Stefan, was this checked in by mistake? From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 15 09:04:33 2019 Received: (at 36598) by debbugs.gnu.org; 15 Jul 2019 13:04:34 +0000 Received: from localhost ([127.0.0.1]:46878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn0ef-0004Pw-JR for submit@debbugs.gnu.org; Mon, 15 Jul 2019 09:04:33 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn0eb-0004Ph-PP for 36598@debbugs.gnu.org; Mon, 15 Jul 2019 09:04:30 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 99B3F100951; Mon, 15 Jul 2019 09:04:24 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5DE221005CA; Mon, 15 Jul 2019 09:04:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1563195863; bh=1dadSI8qEa8id5dvXPV6u8NfAQqEy+UYJxjK+ZZbolM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=dRc4pC7a/T1db8Tyc2agEU5qsNxj/aaHF70+47mx49CbQldBehYkXB0pHiL5zJ1ME J6d5o5XFz2op2TJ58stI0YfqxxXJnc03mtOrhrnum9bEbPpUg14AnEqvGFleYi77G+ 0ys0sYLa0EL8TK2tCGfACgt1bQHOKoc7IdlQzQvnD5q6FPYZzuhd5u9BV7iRNviwDj X98/pLtArhOjpvghquMxQMkMrp5Bk/RVVTYlbq+0hUjbXdayaPa7Mcyf0PXdFfrGGj 7yX/2MKnEaX3I9ZHJtbgZtO21gokgivb1IHcblL+QPkkhF14HmE12zUu0sNY+JTLiT FUjmwS0WqAtqQ== Received: from pastel (104-222-123-229.cpe.teksavvy.com [104.222.123.229]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 23B07120642; Mon, 15 Jul 2019 09:04:23 -0400 (EDT) From: Stefan Monnier To: phillip.lord@russet.org.uk Subject: Re: bug#36598: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1?= =?utf-8?Q?000=E2=80=99?= is not a safe directory because it is a symlink") Message-ID: References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> <44a502116d2c0568d120b7328913b26a@russet.org.uk> <20a62c04ad67dc64665b32d7a31cfe8b@russet.org.uk> Date: Mon, 15 Jul 2019 09:04:22 -0400 In-Reply-To: <20a62c04ad67dc64665b32d7a31cfe8b@russet.org.uk> (phillip lord's message of "Sun, 14 Jul 2019 20:11:31 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.344 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: Lars Ingebrigtsen , 36598@debbugs.gnu.org, mah@everybody.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> 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? > > Nearly. I think it breaks emacs-26 not the emacsclient. I haven't check the > emacsclient code, but I guess Stefan was > aiming for the situation when someone is using (say) emacsclient-26 with > emacs-27. Indeed (it's Debian/s /usr/bin/emacsclient accessing my hand-built Emacs-27 server). >> Stefan, was this checked in by mistake? Definitely, Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 18 02:27:39 2019 Received: (at 36598) by debbugs.gnu.org; 18 Jul 2019 06:27:39 +0000 Received: from localhost ([127.0.0.1]:53308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnztD-0006k8-Ds for submit@debbugs.gnu.org; Thu, 18 Jul 2019 02:27:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnztA-0006ju-Di for 36598@debbugs.gnu.org; Thu, 18 Jul 2019 02:27:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hnzt3-0002im-In; Thu, 18 Jul 2019 02:27:29 -0400 Received: from [176.228.60.248] (port=1119 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hnzt2-0002sk-C9; Thu, 18 Jul 2019 02:27:29 -0400 Date: Thu, 18 Jul 2019 09:27:20 +0300 Message-Id: <83tvbjyi0n.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Mon, 15 Jul 2019 09:04:22 -0400) Subject: Re: bug#36598: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1000=E2=80=99?= is not a safe directory because it is a symlink") References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> <44a502116d2c0568d120b7328913b26a@russet.org.uk> <20a62c04ad67dc64665b32d7a31cfe8b@russet.org.uk> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36598 Cc: larsi@gnus.org, 36598@debbugs.gnu.org, mah@everybody.org, phillip.lord@russet.org.uk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Monnier > Date: Mon, 15 Jul 2019 09:04:22 -0400 > Cc: Lars Ingebrigtsen , 36598@debbugs.gnu.org, > mah@everybody.org > > >> 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? > > > > Nearly. I think it breaks emacs-26 not the emacsclient. I haven't check the > > emacsclient code, but I guess Stefan was > > aiming for the situation when someone is using (say) emacsclient-26 with > > emacs-27. > > Indeed (it's Debian/s /usr/bin/emacsclient accessing my hand-built > Emacs-27 server). > > >> Stefan, was this checked in by mistake? > > Definitely, If this mistake adversely affects the release branch, please revert that commit. We will have RC1 soon. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 23 08:07:20 2019 Received: (at 36598) by debbugs.gnu.org; 23 Jul 2019 12:07:20 +0000 Received: from localhost ([127.0.0.1]:34127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hptZf-0006rn-P0 for submit@debbugs.gnu.org; Tue, 23 Jul 2019 08:07:20 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:42285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hptZd-0006rU-4K; Tue, 23 Jul 2019 08:07:17 -0400 Received: by mail-io1-f67.google.com with SMTP id e20so50870325iob.9; Tue, 23 Jul 2019 05:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=JwtDaIrsCpNZxzzS90sKFoFXVhgTslxEGMvdzMg1sxc=; b=l7+UY6hY4mU11CPZhfJTR6qIMoVR5vbXGjebbFlAlm32PUCf77sQG2D1YRKajPvirz hj19XW0PXvs6gWAGgmzmf0MnDgN5YZpQW7H4dzlM3dzOB7jEK1w2YwpHumMz8HqnCEOg XAkvArQyIVHcVYqCii4oVZlS71DjHgdYnbrWEzzGrPpRo/0X5dz/EYuYkvGczqTxRIlt vIdFCOBtmKXZggG92dGw7zMcKoUq7JVPUM5HUqQrXMZk88Hmg3OO36xk0iy6fEGDCsM0 C/DKvDELNiJWNytyrAlNNRvrx9NBvH+BNvxBj6xxVdvMR7r9GtFeKT1D/5HiAaZoE1Mn VvFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=JwtDaIrsCpNZxzzS90sKFoFXVhgTslxEGMvdzMg1sxc=; b=gEm2BkXVteR2jXI3v4rOuxBZjrgjYZSbdFvLTzrJAlfhTWw/TR8IrrmjCQmE6A8jd7 8xQVtG76hIopLK/HbVAvMt+C/nPcDJ/ugTz+qgSjm28OWiOE+Djmz9e1cxScYWiK+qPr iCe5lvIRS7yeB0t3TDGJKJHBt4bnJrK0Htl2NiwqOLhIZ2UQkYo2WXVsIZJa8/tRNCAI eYIaSurUDrKkBHnXZB1z+9OIH0ECKxDCurfXPdbf0phzx1mgkNxWBAf+BZiBucIBrNu9 CfsMVpS1mq3vpRulRsGIL2IeoTtZTOlZycxN0EbQR9HDleQOPbDWE5KnAiydC9HxBFw3 rWHw== X-Gm-Message-State: APjAAAUUm/taZ1ayn9to9w6FTu0IjDPj5HEMWgOLtlJzrHaQRO6uLLRj nDTCb8JCiSnY50AT403ssFjh24Ul X-Google-Smtp-Source: APXvYqxNRCEiNGRwNaLZv/Mk2s7jPqk3PTPBOWb6nDN+yrGR5VuHwMJe/DBnvD2owqIh+tQLJaVjwA== X-Received: by 2002:a6b:2b08:: with SMTP id r8mr27158392ior.34.1563883631419; Tue, 23 Jul 2019 05:07:11 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id b20sm34331067ios.44.2019.07.23.05.07.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jul 2019 05:07:10 -0700 (PDT) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#36598: 26.1; (error =?utf-8?Q?=22=E2=80=98=2Ftmp=2Femacs1?= =?utf-8?Q?000=E2=80=99?= is not a safe directory because it is a symlink") References: <87muhkr79y.fsf@silk.nichework.com> <87k1cmwnu6.fsf@mouse.gnus.org> <44a502116d2c0568d120b7328913b26a@russet.org.uk> <20a62c04ad67dc64665b32d7a31cfe8b@russet.org.uk> <83tvbjyi0n.fsf@gnu.org> Date: Tue, 23 Jul 2019 08:07:08 -0400 In-Reply-To: <83tvbjyi0n.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Jul 2019 09:27:20 +0300") Message-ID: <87o91lvtsj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36598 Cc: mah@everybody.org, larsi@gnus.org, 36598@debbugs.gnu.org, Stefan Monnier , phillip.lord@russet.org.uk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 36598 fixed close 36598 quit Eli Zaretskii writes: >> >> Commit b663c837249 (in May) which says "Cosmetic changes" is the one >> >> that introduced this code? >> >> And instead of making things work with an old emacsclient, it breaks the >> >> Emacs 26 emacsclient? >> > >> > Nearly. I think it breaks emacs-26 not the emacsclient. I haven't check the >> > emacsclient code, but I guess Stefan was >> > aiming for the situation when someone is using (say) emacsclient-26 with >> > emacs-27. >> >> Indeed (it's Debian/s /usr/bin/emacsclient accessing my hand-built >> Emacs-27 server). >> >> >> Stefan, was this checked in by mistake? >> >> Definitely, > > If this mistake adversely affects the release branch, please revert > that commit. We will have RC1 soon. It has been reverted, closing the bug. 8a2f763e5c 2019-07-18T11:10:05-04:00 "* lisp/server.el (server-ensure-safe-dir): Revert part of b663c8372495" https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=8a2f763e5cc0ed5b5eecd6a315ac45310bc7a2dd From unknown Sun Aug 10 09:45:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 21 Aug 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator