Created
August 21, 2012 14:04
-
-
Save k-takata/3415752 to your computer and use it in GitHub Desktop.
support symlink on NTFS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 536aa8b0c934 -r d6b9170d0b1c src/os_win32.c | |
--- a/src/os_win32.c Wed Aug 15 17:43:31 2012 +0200 | |
+++ b/src/os_win32.c Tue Aug 21 22:36:45 2012 +0900 | |
@@ -2718,6 +2718,12 @@ | |
mch_is_linked(char_u *fname) | |
{ | |
BY_HANDLE_FILE_INFORMATION info; | |
+ int perm; | |
+ | |
+ perm = mch_getperm(fname); | |
+ if (perm != -1 && !(perm & FILE_ATTRIBUTE_DIRECTORY) | |
+ && (perm & FILE_ATTRIBUTE_REPARSE_POINT)) | |
+ return TRUE; | |
return win32_fileinfo(fname, &info) == FILEINFO_OK | |
&& info.nNumberOfLinks > 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment