[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory becaus
From: |
Stefan Monnier |
Subject: |
bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink") |
Date: |
Mon, 15 Jul 2019 09:04:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>> 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
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), Mark A. Hershberger, 2019/07/11
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), Lars Ingebrigtsen, 2019/07/13
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), phillip . lord, 2019/07/13
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), Lars Ingebrigtsen, 2019/07/13
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), phillip . lord, 2019/07/13
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), Glenn Morris, 2019/07/13
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), Lars Ingebrigtsen, 2019/07/14
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), phillip . lord, 2019/07/14
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"),
Stefan Monnier <=
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), Eli Zaretskii, 2019/07/18
- bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), Noam Postavsky, 2019/07/23
bug#36598: 26.1; (error "‘/tmp/emacs1000’ is not a safe directory because it is a symlink"), Noam Postavsky, 2019/07/13