diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-12-01 13:09:58 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2014-12-17 14:58:13 -0600 |
commit | d1dd81b3d154264bb06e28fbf5277d3683e59be6 (patch) | |
tree | 29180ecf1304c79fc6c8e69174322850f6124c98 /src/win32/findfile.c | |
parent | bf4f50ac6ae54c605cd2aaeff0cad7e2180d9e96 (diff) | |
download | libgit2-d1dd81b3d154264bb06e28fbf5277d3683e59be6.tar.gz |
win32: use NT-prefixed "\\?\" paths
When turning UTF-8 paths into UCS-2 paths for Windows, always use
the \\?\-prefixed paths. Because this bypasses the system's
path canonicalization, handle the canonicalization functions ourselves.
We must:
1. always use a backslash as a directory separator
2. only use a single backslash between directories
3. not rely on the system to translate "." and ".." in paths
4. remove trailing backslashes, except at the drive root (C:\)
Diffstat (limited to 'src/win32/findfile.c')
-rw-r--r-- | src/win32/findfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/win32/findfile.c b/src/win32/findfile.c index 86d4ef5bd..de27dd060 100644 --- a/src/win32/findfile.c +++ b/src/win32/findfile.c @@ -5,6 +5,7 @@ * a Linking Exception. For full terms see the included COPYING file. */ +#include "path_w32.h" #include "utf-conv.h" #include "path.h" #include "findfile.h" |