Changeset 1553 in kBuild for trunk/src/kmk/kmkbuiltin/rm.c
- Timestamp:
- Apr 23, 2008 12:49:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/rm.c
r1552 r1553 59 59 #include <sysexits.h> 60 60 #include <unistd.h> 61 #include <ctype.h> 61 62 #include "getopt.h" 62 63 #ifdef _MSC_VER … … 378 379 } 379 380 380 if (IS_SLASH( cwd[0]) && IS_SLASH(cwd[1])) {381 if (IS_SLASH(tmp[0]) && IS_SLASH(tmp[1])) { 381 382 /* skip the root - UNC */ 382 tmp = &cwd[2];383 tmp += 2; 383 384 while (!IS_SLASH(*tmp) && *tmp) /* server name */ 384 385 tmp++; … … 389 390 } else { 390 391 /* skip the drive letter and while we're at it, the root slash too. */ 391 tmp = &cwd[1 + (cwd[1] == ':')];392 tmp += 1 + (tmp[1] == ':'); 392 393 } 393 394 components = count_sub_path_components(tmp, 0); … … 433 434 */ 434 435 static int 435 enforce_protection(const char *path, unsignedrequired_depth)436 enforce_protection(const char *path, int required_depth) 436 437 { 437 438 int components; … … 621 622 } 622 623 } 624 #ifdef UF_APPEND 623 625 err: 626 #endif 624 627 fprintf(stderr, "%s: %s: %s\n", argv0, p->fts_path, strerror(errno)); 625 628 eval = 1;
Note:
See TracChangeset
for help on using the changeset viewer.