comparison src/buffer.c @ 1082:342d2b3a072a v7.0.208

updated for version 7.0-208
author vimboss
date Tue, 06 Mar 2007 19:22:53 +0000
parents 7f01e52cc97a
children 8531f7ee3662
comparison
equal deleted inserted replaced
1081:0e57be57fa49 1082:342d2b3a072a
4143 char_u *fname; 4143 char_u *fname;
4144 { 4144 {
4145 /* 4145 /*
4146 * Force expanding the path always for Unix, because symbolic links may 4146 * Force expanding the path always for Unix, because symbolic links may
4147 * mess up the full path name, even though it starts with a '/'. 4147 * mess up the full path name, even though it starts with a '/'.
4148 * Also expand always for VMS, it may have alternate paths that need to be
4149 * resolved.
4150 * Also expand when there is ".." in the file name, try to remove it, 4148 * Also expand when there is ".." in the file name, try to remove it,
4151 * because "c:/src/../README" is equal to "c:/README". 4149 * because "c:/src/../README" is equal to "c:/README".
4152 * For MS-Windows also expand names like "longna~1" to "longname". 4150 * For MS-Windows also expand names like "longna~1" to "longname".
4153 */ 4151 */
4154 #if defined(UNIX) || defined(VMS) 4152 #ifdef UNIX
4155 return FullName_save(fname, TRUE); 4153 return FullName_save(fname, TRUE);
4156 #else 4154 #else
4157 if (!vim_isAbsName(fname) || strstr((char *)fname, "..") != NULL 4155 if (!vim_isAbsName(fname) || strstr((char *)fname, "..") != NULL
4158 #if defined(MSWIN) || defined(DJGPP) 4156 #if defined(MSWIN) || defined(DJGPP)
4159 || vim_strchr(fname, '~') != NULL 4157 || vim_strchr(fname, '~') != NULL