Changeset 233 for branches/samba-3.2.x/source/client/clitar.c
- Timestamp:
- May 27, 2009, 11:39:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/client/clitar.c
r138 r233 1507 1507 if (strrchr_m(cliplist[i], '\\')) { 1508 1508 char *p; 1509 char saved_char; 1509 1510 char *saved_dir = talloc_strdup(ctx, 1510 1511 client_get_cur_dir()); … … 1525 1526 return 1; 1526 1527 } 1528 /* 1529 * Strip off the last \\xxx 1530 * xxx element of tarmac to set 1531 * it as current directory. 1532 */ 1527 1533 p = strrchr_m(tarmac, '\\'); 1528 1534 if (!p) { 1529 1535 return 1; 1530 1536 } 1537 saved_char = p[1]; 1531 1538 p[1] = '\0'; 1539 1532 1540 client_set_cur_dir(tarmac); 1541 1542 /* 1543 * Restore the character we 1544 * just replaced to 1545 * put the pathname 1546 * back as it was. 1547 */ 1548 p[1] = saved_char; 1533 1549 1534 1550 DEBUG(5, ("process_tar, do_list with tarmac: %s\n", tarmac));
Note:
See TracChangeset
for help on using the changeset viewer.