Ignore:
Timestamp:
May 24, 2009, 7:45:16 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 branch to 3.3.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/smbd/trans2.c

    r206 r222  
    49904990
    49914991static NTSTATUS smb_set_file_dosmode(connection_struct *conn,
     4992                                files_struct *fsp,
    49924993                                const char *fname,
    49934994                                SMB_STRUCT_STAT *psbuf,
     
    49984999        }
    49995000
     5001        if (fsp) {
     5002                if (fsp->base_fsp) {
     5003                        fname = fsp->base_fsp->fsp_name;
     5004                } else {
     5005                        fname = fsp->fsp_name;
     5006                }
     5007        }
     5008               
    50005009        if (dosmode) {
    50015010                if (S_ISDIR(psbuf->st_mode)) {
     
    57235732        dosmode = IVAL(pdata,32);
    57245733        status = smb_set_file_dosmode(conn,
    5725                                         fname,
    5726                                         psbuf,
    5727                                         dosmode);
     5734                                fsp,
     5735                                fname,
     5736                                psbuf,
     5737                                dosmode);
     5738
    57285739        if (!NT_STATUS_IS_OK(status)) {
    57295740                return status;
     
    63906401        } else if((wire_open_mode & SMB_O_CREAT) == SMB_O_CREAT) {
    63916402                create_disp = FILE_OPEN_IF;
     6403        } else if ((wire_open_mode & (SMB_O_CREAT | SMB_O_EXCL | SMB_O_TRUNC)) == 0) {
     6404                create_disp = FILE_OPEN;
    63926405        } else {
    63936406                DEBUG(5,("smb_posix_open: invalid create mode 0x%x\n",
Note: See TracChangeset for help on using the changeset viewer.