mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Don't follow cyclic symbolic links
This commit is contained in:
parent
77c81279cb
commit
9d96e3116a
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ var
|
|||
AddedIndex: Integer;
|
||||
begin
|
||||
LinkedFilePath := mbReadAllLinks(aFile.FullPath);
|
||||
if (LinkedFilePath <> '') and (LinkedFilePath <> PathDelim) then
|
||||
if (LinkedFilePath <> '') and not (aFile.IsLinkToDirectory and IsInPath(LinkedFilePath, aFile.FullPath, True, True)) then
|
||||
begin
|
||||
try
|
||||
LinkedFile := TFileSystemFileSource.CreateFileFromFile(LinkedFilePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue