Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/smbd/reply.c

    r745 r751  
    17671767        }
    17681768
    1769         if (!map_open_params_to_ntcreate(smb_fname, deny_mode,
     1769        if (!map_open_params_to_ntcreate(smb_fname, deny_mode,
    17701770                                         OPENX_FILE_EXISTS_OPEN, &access_mask,
    17711771                                         &share_mode, &create_disposition,
     
    19421942        }
    19431943
    1944         if (!map_open_params_to_ntcreate(smb_fname, deny_mode, smb_ofun,
     1944        if (!map_open_params_to_ntcreate(smb_fname->base_name, deny_mode,
     1945                                         smb_ofun,
    19451946                                         &access_mask, &share_mode,
    19461947                                         &create_disposition,
     
    25412542
    25422543        /* The set is across all open files on this dev/inode pair. */
    2543         if (!set_delete_on_close(fsp, True, &conn->session_info->utok)) {
     2544        if (!set_delete_on_close(fsp, true,
     2545                                conn->session_info->security_token,
     2546                                &conn->session_info->utok)) {
    25442547                close_file(req, fsp, NORMAL_CLOSE);
    25452548                return NT_STATUS_ACCESS_DENIED;
     
    46304633        SSVAL(req->outbuf,smb_vwv4,nwritten>>16);
    46314634
    4632         if (nwritten < (ssize_t)numtowrite) {
    4633                 SCVAL(req->outbuf,smb_rcls,ERRHRD);
    4634                 SSVAL(req->outbuf,smb_err,ERRdiskfull);
    4635         }
    4636 
    46374635        DEBUG(3,("writeX fnum=%d num=%d wrote=%d\n",
    46384636                fsp->fnum, (int)numtowrite, (int)nwritten));
     
    56555653        }
    56565654
    5657         if (!set_delete_on_close(fsp, true, &conn->session_info->utok)) {
     5655        if (!set_delete_on_close(fsp, true,
     5656                        conn->session_info->security_token,
     5657                        &conn->session_info->utok)) {
    56585658                close_file(req, fsp, ERROR_CLOSE);
    56595659                reply_nterror(req, NT_STATUS_ACCESS_DENIED);
     
    59365936
    59375937/****************************************************************************
     5938
     5939
     5940
     5941
     5942
     5943
     5944
     5945
     5946
     5947
     5948
     5949
     5950
     5951
     5952
     5953
     5954
     5955
     5956
     5957
     5958
     5959
     5960
     5961
     5962
     5963
     5964
     5965
     5966
     5967
     5968
     5969
     5970
     5971
     5972
     5973
     5974
     5975
     5976
     5977
     5978
    59385979 Rename an open file - given an fsp.
    59395980****************************************************************************/
     
    59596000
    59606001        status = check_name(conn, smb_fname_dst_in->base_name);
     6002
     6003
     6004
     6005
     6006
    59616007        if (!NT_STATUS_IS_OK(status)) {
    59626008                return status;
     
    65696615        struct smb_filename *smb_fname_src = NULL;
    65706616        struct smb_filename *smb_fname_dst = NULL;
     6617
     6618
    65716619        bool stream_rename = false;
    65726620
     
    66116659                                  req->flags2 & FLAGS2_DFS_PATHNAMES,
    66126660                                  name,
    6613                                   UCF_COND_ALLOW_WCARD_LCOMP,
     6661                                  ,
    66146662                                  &src_has_wcard,
    66156663                                  &smb_fname_src);
     
    66296677                                  req->flags2 & FLAGS2_DFS_PATHNAMES,
    66306678                                  newname,
    6631                                   UCF_COND_ALLOW_WCARD_LCOMP | UCF_SAVE_LCOMP,
     6679                                  ,
    66326680                                  &dest_has_wcard,
    66336681                                  &smb_fname_dst);
     
    67406788                new_create_disposition = FILE_OPEN;
    67416789        } else {
    6742                 if (!map_open_params_to_ntcreate(smb_fname_dst_tmp, 0, ofun,
     6790                if (!map_open_params_to_ntcreate(smb_fname_dst_tmp->base_name,
     6791                                                 0, ofun,
    67436792                                                 NULL, NULL,
    67446793                                                 &new_create_disposition,
Note: See TracChangeset for help on using the changeset viewer.