Changeset 1555 in kBuild for trunk/src/kmk/kmkbuiltin/rm.c
- Timestamp:
- Apr 23, 2008 1:08:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/rm.c
r1553 r1555 350 350 */ 351 351 #if defined(_MSC_VER) || defined(__OS2__) 352 352 if (IS_SLASH(path[0]) && IS_SLASH(path[1]) && !IS_SLASH(path[2])) { 353 353 /* skip the root - UNC */ 354 354 path += 3; … … 369 369 } 370 370 371 if ( IS_SLASH(path[drive_letter ? 2 : 0])) {371 if (!IS_SLASH(path[drive_letter ? 2 : 0])) { 372 372 /* 373 373 * Relative path, must count cwd depth first. 374 374 */ 375 char *tmp = _getdcwd(drive_letter, NULL, 32); 375 char *cwd = _getdcwd(drive_letter, NULL, 32); 376 char *tmp = cwd; 376 377 if (!tmp) { 377 378 eval = err(1, "_getdcwd"); … … 393 394 } 394 395 components = count_sub_path_components(tmp, 0); 395 free( tmp);396 free(cwd); 396 397 } else { 397 398 /* skip the drive letter and while we're at it, the root slash too. */
Note:
See TracChangeset
for help on using the changeset viewer.