- Timestamp:
- Apr 23, 2008 1:23:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/mkdir.c
r1516 r1556 177 177 178 178 #if defined(_MSC_VER) || defined(__EMX__) 179 /* correct slashes. */ 179 180 p = strchr(path, '\\'); 180 181 while (p) { … … 191 192 || (p[0] >= 'a' && p[0] <= 'z')) 192 193 && p[1] == ':') 193 p += 2; 194 p += 2; /* skip the drive letter */ 194 195 else if ( p[0] == '/' 195 196 && p[1] == '/' 196 197 && p[2] != '/') 197 198 { 198 char *p2;199 /* UNC */ 199 200 p += 2; 200 p2 = strchr(p, '/'); 201 if (p2) 202 p = p2 + 1; 201 while (*p && *p != '/') /* server */ 202 p++; 203 while (*p == '/') 204 p++; 205 while (*p && *p != '/') /* share */ 206 p++; 203 207 } 204 208 #endif
Note:
See TracChangeset
for help on using the changeset viewer.