Changeset 223 for branches/samba-3.3.x/source/libsmb/clidfs.c
- Timestamp:
- May 24, 2009, 7:51:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/libsmb/clidfs.c
r206 r223 666 666 const char *dir) 667 667 { 668 char path_sep = '\\'; 669 668 670 /* Ensure the extrapath doesn't start with a separator. */ 669 671 while (IS_DIRECTORY_SEP(*dir)) { … … 671 673 } 672 674 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); 675 685 } 676 686
Note:
See TracChangeset
for help on using the changeset viewer.