Changeset 989 for vendor/current/source3/smbd/trans2.c
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/trans2.c
r988 r989 3378 3378 uint64_t dfree,dsize,bsize,block_size,sectors_per_unit; 3379 3379 data_len = 18; 3380 df_ret = get_dfree_info(conn, filename, &bsize, &dfree,3381 &d size);3380 df_ret = get_dfree_info(conn, &smb_fname, &bsize, 3381 &dfree, &dsize); 3382 3382 if (df_ret == (uint64_t)-1) { 3383 3383 return map_nt_error_from_unix(errno); … … 3529 3529 uint64_t dfree,dsize,bsize,block_size,sectors_per_unit; 3530 3530 data_len = 24; 3531 df_ret = get_dfree_info(conn, filename, &bsize, &dfree,3532 &d size);3531 df_ret = get_dfree_info(conn, &smb_fname, &bsize, 3532 &dfree, &dsize); 3533 3533 if (df_ret == (uint64_t)-1) { 3534 3534 return map_nt_error_from_unix(errno); … … 3563 3563 uint64_t dfree,dsize,bsize,block_size,sectors_per_unit; 3564 3564 data_len = 32; 3565 df_ret = get_dfree_info(conn, filename, &bsize, &dfree,3566 &d size);3565 df_ret = get_dfree_info(conn, &smb_fname, &bsize, 3566 &dfree, &dsize); 3567 3567 if (df_ret == (uint64_t)-1) { 3568 3568 return map_nt_error_from_unix(errno); … … 4153 4153 /* Here is where we must switch to posix pathname processing... */ 4154 4154 if (xconn->smb1.unix_info.client_cap_low & CIFS_UNIX_POSIX_PATHNAMES_CAP) { 4155 lp_set_posix_pathnames();4155 (void)lp_set_posix_pathnames(true); 4156 4156 mangle_change_to_posix(); 4157 4157 } … … 5701 5701 if (info_level == SMB_QUERY_FILE_UNIX_BASIC || 5702 5702 info_level == SMB_QUERY_FILE_UNIX_INFO2 || 5703 info_level == SMB_QUERY_FILE_UNIX_LINK) { 5703 info_level == SMB_QUERY_FILE_UNIX_LINK || 5704 req->posix_pathnames) { 5704 5705 ucf_flags |= UCF_UNIX_NAME_LOOKUP; 5705 5706 } … … 5762 5763 } 5763 5764 5764 if (INFO_LEVEL_IS_UNIX(info_level) ) {5765 if (INFO_LEVEL_IS_UNIX(info_level) || req->posix_pathnames) { 5765 5766 /* Always do lstat for UNIX calls. */ 5766 5767 if (SMB_VFS_LSTAT(conn, smb_fname_base) != 0) { … … 5808 5809 } 5809 5810 5810 if (INFO_LEVEL_IS_UNIX(info_level) ) {5811 if (INFO_LEVEL_IS_UNIX(info_level) || req->posix_pathnames) { 5811 5812 /* Always do lstat for UNIX calls. */ 5812 5813 if (SMB_VFS_LSTAT(conn, smb_fname)) {
Note:
See TracChangeset
for help on using the changeset viewer.