Differences From Artifact [b4b2cb749a]:
- File src/file.c — part of check-in [30ff96e7a5] at 2014-09-21 02:05:03 on branch bad-winsymlink — Cleaning up some source comments & such. Also modified a memory block to be on the heap instead of the stack. (user: sdr size: 34996) [more...]
To Artifact [bcedd9c9e7]:
- File src/file.c — part of check-in [9c5bbd6a01] at 2014-09-25 19:21:45 on branch winsymlink — Summary: a number of changes to improve windows symlink handling. Detail: fixed file_contains_merge_marker failure on windows symlinks; fixed inadequate S_ISLNK macro for windows; backed out change made to revert query ("OR islink" removed); added special processing to vfile_check_signature for windows symlink type changes; fixed a few flaws in the windows specific posix-compatibility routines to improve symlink handling. (user: sdr size: 35144)
| ︙ | |||
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | + + + + + + + | #endif /* INTERFACE */ #if !defined(_WIN32) || !(defined(__MSVCRT__) || defined(_MSC_VER)) # define fossilStat stat #endif #if defined(_WIN32) /* ** On Windows S_ISLNK can be true or false. */ /* the S_ISLNK provided by dirent.h for windows is inadequate, so fix it */ #if defined(S_ISLNK) # undef S_ISLNK #endif #if !defined(S_ISLNK) # define S_ISLNK(x) ((x)==S_IFLNK) #endif #endif static int fileStatValid = 0; static struct fossilStat fileStat; /* ** Fill stat buf with information received from stat() or lstat(). ** lstat() is called on Unix if isWd is TRUE and allow-symlinks setting is on. ** |
| ︙ |