0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.1.0338: Vim9: import through symlinks not correctly handled

Problem:  Vim9: import through symlinks not correctly handled
Solution: Check for script being a symlink but only once
          (Ernie Rael)

closes: #14565

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Ernie Rael
2024-04-16 22:11:56 +02:00
committed by Christian Brabandt
parent d1068a2bb0
commit 9a90179a11
6 changed files with 71 additions and 0 deletions

View File

@@ -546,6 +546,9 @@ compile_load_scriptvar(
int done = FALSE;
int res = OK;
check_script_symlink(import->imp_sid);
import_check_sourced_sid(&import->imp_sid);
// Need to lookup the member.
if (*p != '.')
{