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/libsmb/clidfs.c

    r232 r233  
    666666                                        const char *dir)
    667667{
     668        char path_sep = '\\';
     669
    668670        /* Ensure the extrapath doesn't start with a separator. */
    669671        while (IS_DIRECTORY_SEP(*dir)) {
     
    671673        }
    672674
    673         return talloc_asprintf(ctx, "\\%s\\%s\\%s",
    674                         cli->desthost, cli->share, dir);
     675        if (cli->posix_capabilities & CIFS_UNIX_POSIX_PATHNAMES_CAP) {
     676                path_sep = '/';
     677        }
     678        return talloc_asprintf(ctx, "%c%s%c%s%c%s",
     679                        path_sep,
     680                        cli->desthost,
     681                        path_sep,
     682                        cli->share,
     683                        path_sep,
     684                        dir);
    675685}
    676686
Note: See TracChangeset for help on using the changeset viewer.