mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
updated for version 7.0176
This commit is contained in:
@@ -3419,9 +3419,10 @@ resolve_symlink(fname, buf)
|
||||
ret = readlink((char *)tmp, (char *)buf, MAXPATHL - 1);
|
||||
if (ret <= 0)
|
||||
{
|
||||
if (errno == EINVAL) /* found non-symlink, stop here */
|
||||
if (errno == EINVAL || errno == ENOENT)
|
||||
{
|
||||
/* When at the first level use the unmodifed name, skip the
|
||||
/* Found non-symlink or not existing file, stop here.
|
||||
* When at the first level use the unmodifed name, skip the
|
||||
* call to vim_FullName(). */
|
||||
if (depth == 1)
|
||||
return FAIL;
|
||||
|
Reference in New Issue
Block a user