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: Andreas Schwab
Subject: Re: Allowing symlinked dir-locals files?
Date: Mon, 16 Aug 2021 20:39:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

On Aug 16 2021, Eli Zaretskii wrote:

>> Looking at the current files.el:4330, we explicitly check if the file is
>> a regular file.

Why is that a problem?  If the symlink points to a regular file, it is
still a file-regular-p.

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

Is that different from a regular file injected by malevolent hackers?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

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