Ignore:
Timestamp:
Nov 12, 2012, 4:35:55 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/smbd/trans2.c

    r599 r732  
    10821082        }
    10831083
    1084         if (!map_open_params_to_ntcreate(smb_fname, deny_mode, open_ofun,
     1084        if (!map_open_params_to_ntcreate(smb_fname->base_name, deny_mode,
     1085                                         open_ofun,
    10851086                                         &access_mask, &share_mode,
    10861087                                         &create_disposition,
     
    22462247        struct dptr_struct *dirptr = NULL;
    22472248        struct smbd_server_connection *sconn = smbd_server_conn;
     2249        uint32_t ucf_flags = (UCF_SAVE_LCOMP | UCF_ALWAYS_ALLOW_WCARD_LCOMP);
    22482250
    22492251        if (total_params < 13) {
     
    22892291                                goto out;
    22902292                        }
     2293                        ucf_flags |= UCF_UNIX_NAME_LOOKUP;
    22912294                        break;
    22922295                default:
     
    23062309                                    req->flags2 & FLAGS2_DFS_PATHNAMES,
    23072310                                    directory,
    2308                                     (UCF_SAVE_LCOMP |
    2309                                         UCF_ALWAYS_ALLOW_WCARD_LCOMP),
     2311                                    ucf_flags,
    23102312                                    &mask_contains_wcard,
    23112313                                    &smb_dname);
     
    51025104        } else {
    51035105                char *fname = NULL;
     5106                uint32_t ucf_flags = 0;
    51045107
    51055108                /* qpathinfo */
     
    51135116                DEBUG(3,("call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = %d\n", info_level));
    51145117
    5115                 if (INFO_LEVEL_IS_UNIX(info_level) && !lp_unix_extensions()) {
    5116                         reply_nterror(req, NT_STATUS_INVALID_LEVEL);
    5117                         return;
     5118                if (INFO_LEVEL_IS_UNIX(info_level)) {
     5119                        if (!lp_unix_extensions()) {
     5120                                reply_nterror(req, NT_STATUS_INVALID_LEVEL);
     5121                                return;
     5122                        }
     5123                        if (info_level == SMB_QUERY_FILE_UNIX_BASIC ||
     5124                                        info_level == SMB_QUERY_FILE_UNIX_INFO2 ||
     5125                                        info_level == SMB_QUERY_FILE_UNIX_LINK) {
     5126                                ucf_flags |= UCF_UNIX_NAME_LOOKUP;
     5127                        }
    51185128                }
    51195129
     
    51305140                                        req->flags2 & FLAGS2_DFS_PATHNAMES,
    51315141                                        fname,
    5132                                         0,
     5142                                        ucf_flags,
    51335143                                        NULL,
    51345144                                        &smb_fname);
Note: See TracChangeset for help on using the changeset viewer.