0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0-171

This commit is contained in:
Bram Moolenaar
2006-11-28 16:43:58 +00:00
parent 85f868c3ae
commit 3d20ca1ad1
4 changed files with 74 additions and 36 deletions

View File

@@ -4145,11 +4145,13 @@ fix_fname(fname)
/*
* Force expanding the path always for Unix, because symbolic links may
* mess up the full path name, even though it starts with a '/'.
* Also expand always for VMS, it may have alternate paths that need to be
* resolved.
* Also expand when there is ".." in the file name, try to remove it,
* because "c:/src/../README" is equal to "c:/README".
* For MS-Windows also expand names like "longna~1" to "longname".
*/
#ifdef UNIX
#if defined(UNIX) || defined(VMS)
return FullName_save(fname, TRUE);
#else
if (!vim_isAbsName(fname) || strstr((char *)fname, "..") != NULL