Code

verify_path: consider dos drive prefix
[git.git] / read-cache.c
index 0480d9455cec042cf128e4d92bbc44a9dcc3fe32..31cf0b503adb9c9b436a74df6ab11992d863a057 100644 (file)
@@ -774,11 +774,14 @@ int verify_path(const char *path)
 {
        char c;
 
+       if (has_dos_drive_prefix(path))
+               return 0;
+
        goto inside;
        for (;;) {
                if (!c)
                        return 1;
-               if (c == '/') {
+               if (is_dir_sep(c)) {
 inside:
                        c = *path++;
                        switch (c) {