Mercurial > vim
comparison src/os_unix.c @ 1615:fc2ee817dc98 v7.1.328
updated for version 7.1-328
author | vimboss |
---|---|
date | Sat, 21 Jun 2008 11:12:49 +0000 |
parents | 7d127d580b6d |
children | 73fe8baea242 |
comparison
equal
deleted
inserted
replaced
1614:371201c6b4c1 | 1615:fc2ee817dc98 |
---|---|
2276 static int dont_fchdir = FALSE; /* TRUE when fchdir() doesn't work */ | 2276 static int dont_fchdir = FALSE; /* TRUE when fchdir() doesn't work */ |
2277 #endif | 2277 #endif |
2278 char_u olddir[MAXPATHL]; | 2278 char_u olddir[MAXPATHL]; |
2279 char_u *p; | 2279 char_u *p; |
2280 int retval = OK; | 2280 int retval = OK; |
2281 #ifdef __CYGWIN__ | |
2282 char_u posix_fname[MAX_PATH]; | |
2283 #endif | |
2284 | |
2281 | 2285 |
2282 #ifdef VMS | 2286 #ifdef VMS |
2283 fname = vms_fixfilename(fname); | 2287 fname = vms_fixfilename(fname); |
2284 #endif | 2288 #endif |
2285 | 2289 |
2286 #ifdef __CYGWIN__ | 2290 #ifdef __CYGWIN__ |
2287 /* | 2291 /* |
2288 * This helps for when "/etc/hosts" is a symlink to "c:/something/hosts". | 2292 * This helps for when "/etc/hosts" is a symlink to "c:/something/hosts". |
2289 */ | 2293 */ |
2290 cygwin_conv_to_posix_path(fname, fname); | 2294 cygwin_conv_to_posix_path(fname, posix_fname); |
2295 fname = posix_fname; | |
2291 #endif | 2296 #endif |
2292 | 2297 |
2293 /* expand it if forced or not an absolute path */ | 2298 /* expand it if forced or not an absolute path */ |
2294 if (force || !mch_isFullName(fname)) | 2299 if (force || !mch_isFullName(fname)) |
2295 { | 2300 { |