diff options
Diffstat (limited to 'src/w32.c')
| -rw-r--r-- | src/w32.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -4098,7 +4098,7 @@ symlink (char const *filename, char const *linkname) | |||
| 4098 | dir_access = sys_access (filename, D_OK); | 4098 | dir_access = sys_access (filename, D_OK); |
| 4099 | 4099 | ||
| 4100 | /* Since Windows distinguishes between symlinks to directories and | 4100 | /* Since Windows distinguishes between symlinks to directories and |
| 4101 | to files, we provide a kludgey feature: if FILENAME doesn't | 4101 | to files, we provide a kludgy feature: if FILENAME doesn't |
| 4102 | exist, but ends in a slash, we create a symlink to directory. If | 4102 | exist, but ends in a slash, we create a symlink to directory. If |
| 4103 | FILENAME exists and is a directory, we always create a symlink to | 4103 | FILENAME exists and is a directory, we always create a symlink to |
| 4104 | directory. */ | 4104 | directory. */ |
| @@ -4165,7 +4165,7 @@ symlink (char const *filename, char const *linkname) | |||
| 4165 | whether the underlying volume actually supports symlinks, by | 4165 | whether the underlying volume actually supports symlinks, by |
| 4166 | testing the FILE_SUPPORTS_REPARSE_POINTS bit in volume's flags, and | 4166 | testing the FILE_SUPPORTS_REPARSE_POINTS bit in volume's flags, and |
| 4167 | avoid the call to this function if it doesn't. That's because the | 4167 | avoid the call to this function if it doesn't. That's because the |
| 4168 | call to GetFileAttributes takes a non-negligible time, expecially | 4168 | call to GetFileAttributes takes a non-negligible time, especially |
| 4169 | on non-local or removable filesystems. See stat_worker for an | 4169 | on non-local or removable filesystems. See stat_worker for an |
| 4170 | example of how to do that. */ | 4170 | example of how to do that. */ |
| 4171 | static int | 4171 | static int |