summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2014-12-19 23:54:01 +0800
committerLinquize <linquize@yahoo.com.hk>2014-12-19 23:54:01 +0800
commit6fd00266a8c5c39d98abf2ec899db6f5cbd8874f (patch)
tree8998be06fef137dcabba6601d38ed5180dde5295 /src/path.c
parent629417bd10d3308f1ee6fedd5bbb206a259337aa (diff)
downloadlibgit2-6fd00266a8c5c39d98abf2ec899db6f5cbd8874f.tar.gz
COM0 is a valid path, although Windows Explorer does not allow to create this
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index 768a7e188..0bad96242 100644
--- a/src/path.c
+++ b/src/path.c
@@ -1254,7 +1254,7 @@ GIT_INLINE(bool) verify_dospath(
if (len < last || git__strncasecmp(component, dospath, 3) != 0)
return true;
- if (trailing_num && !git__isdigit(component[3]))
+ if (trailing_num && (component[3] < '1' || component[3] > '9'))
return true;
return (len > last &&