Mercurial > vim
diff src/memline.c @ 619:66263e241ce3 v7.0176
updated for version 7.0176
author | vimboss |
---|---|
date | Fri, 23 Dec 2005 22:19:46 +0000 |
parents | 35cef95a6b76 |
children | 81fe2ccc1207 |
line wrap: on
line diff
--- a/src/memline.c +++ b/src/memline.c @@ -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;