Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/smbd/trans2.c

    r988 r989  
    33783378                        uint64_t dfree,dsize,bsize,block_size,sectors_per_unit;
    33793379                        data_len = 18;
    3380                         df_ret = get_dfree_info(conn, filename, &bsize, &dfree,
    3381                                                 &dsize);
     3380                        df_ret = get_dfree_info(conn, &smb_fname, &bsize,
     3381                                                &dfree, &dsize);
    33823382                        if (df_ret == (uint64_t)-1) {
    33833383                                return map_nt_error_from_unix(errno);
     
    35293529                        uint64_t dfree,dsize,bsize,block_size,sectors_per_unit;
    35303530                        data_len = 24;
    3531                         df_ret = get_dfree_info(conn, filename, &bsize, &dfree,
    3532                                                 &dsize);
     3531                        df_ret = get_dfree_info(conn, &smb_fname, &bsize,
     3532                                                &dfree, &dsize);
    35333533                        if (df_ret == (uint64_t)-1) {
    35343534                                return map_nt_error_from_unix(errno);
     
    35633563                        uint64_t dfree,dsize,bsize,block_size,sectors_per_unit;
    35643564                        data_len = 32;
    3565                         df_ret = get_dfree_info(conn, filename, &bsize, &dfree,
    3566                                                 &dsize);
     3565                        df_ret = get_dfree_info(conn, &smb_fname, &bsize,
     3566                                                &dfree, &dsize);
    35673567                        if (df_ret == (uint64_t)-1) {
    35683568                                return map_nt_error_from_unix(errno);
     
    41534153                        /* Here is where we must switch to posix pathname processing... */
    41544154                        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);
    41564156                                mangle_change_to_posix();
    41574157                        }
     
    57015701                        if (info_level == SMB_QUERY_FILE_UNIX_BASIC ||
    57025702                                        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) {
    57045705                                ucf_flags |= UCF_UNIX_NAME_LOOKUP;
    57055706                        }
     
    57625763                        }
    57635764
    5764                         if (INFO_LEVEL_IS_UNIX(info_level)) {
     5765                        if (INFO_LEVEL_IS_UNIX(info_level) || req->posix_pathnames) {
    57655766                                /* Always do lstat for UNIX calls. */
    57665767                                if (SMB_VFS_LSTAT(conn, smb_fname_base) != 0) {
     
    58085809                }
    58095810
    5810                 if (INFO_LEVEL_IS_UNIX(info_level)) {
     5811                if (INFO_LEVEL_IS_UNIX(info_level) || req->posix_pathnames) {
    58115812                        /* Always do lstat for UNIX calls. */
    58125813                        if (SMB_VFS_LSTAT(conn, smb_fname)) {
Note: See TracChangeset for help on using the changeset viewer.