Ignore:
Timestamp:
May 24, 2009, 7:45:16 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 branch to 3.3.2

File:
1 edited

Legend:

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

    r206 r222  
    15141514                                        if (strrchr_m(cliplist[i], '\\')) {
    15151515                                                char *p;
     1516                                                char saved_char;
    15161517                                                char *saved_dir = talloc_strdup(ctx,
    15171518                                                                        client_get_cur_dir());
     
    15321533                                                        return 1;
    15331534                                                }
     1535                                                /*
     1536                                                 * Strip off the last \\xxx
     1537                                                 * xxx element of tarmac to set
     1538                                                 * it as current directory.
     1539                                                 */
    15341540                                                p = strrchr_m(tarmac, '\\');
    15351541                                                if (!p) {
    15361542                                                        return 1;
    15371543                                                }
     1544                                                saved_char = p[1];
    15381545                                                p[1] = '\0';
     1546
    15391547                                                client_set_cur_dir(tarmac);
     1548
     1549                                                /*
     1550                                                 * Restore the character we
     1551                                                 * just replaced to
     1552                                                 * put the pathname
     1553                                                 * back as it was.
     1554                                                 */
     1555                                                p[1] = saved_char;
    15401556
    15411557                                                DEBUG(5, ("process_tar, do_list with tarmac: %s\n", tarmac));
Note: See TracChangeset for help on using the changeset viewer.