emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allowing symlinked dir-locals files?


From: Eli Zaretskii
Subject: Re: Allowing symlinked dir-locals files?
Date: Mon, 16 Aug 2021 21:12:16 +0300

> From: Yuri D'Elia <wavexx@thregr.org>
> Date: Mon, 16 Aug 2021 20:01:20 +0200
> 
> Looking at the current files.el:4330, we explicitly check if the file is
> a regular file. And looking at the FIXME comment just above I concur
> that checking just for file-directory-p should be sufficient for proper
> behavior.
> 
> However I suspect that the rationale was to be proper as well as "safe",
> as this could be used to make emacs read/interpret another file if the
> symlink is under the control of a VCS or via a shared-filesystem.

Yes.  It could also be a symlink injected by malevolent hackers.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]