Ignore:
Timestamp:
May 27, 2009, 11:39:15 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/client/clitar.c

    r138 r233  
    15071507                                        if (strrchr_m(cliplist[i], '\\')) {
    15081508                                                char *p;
     1509                                                char saved_char;
    15091510                                                char *saved_dir = talloc_strdup(ctx,
    15101511                                                                        client_get_cur_dir());
     
    15251526                                                        return 1;
    15261527                                                }
     1528                                                /*
     1529                                                 * Strip off the last \\xxx
     1530                                                 * xxx element of tarmac to set
     1531                                                 * it as current directory.
     1532                                                 */
    15271533                                                p = strrchr_m(tarmac, '\\');
    15281534                                                if (!p) {
    15291535                                                        return 1;
    15301536                                                }
     1537                                                saved_char = p[1];
    15311538                                                p[1] = '\0';
     1539
    15321540                                                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;
    15331549
    15341550                                                DEBUG(5, ("process_tar, do_list with tarmac: %s\n", tarmac));
Note: See TracChangeset for help on using the changeset viewer.