Ignore:
Timestamp:
Aug 4, 2009, 8:51:22 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.3 to 3.3.7

File:
1 edited

Legend:

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

    r224 r309  
    318318        if (!CAN_WRITE(conn)) {
    319319                /* It's a read-only share - fail if we wanted to write. */
    320                 if(accmode != O_RDONLY) {
     320                if(accmode != O_RDONLY || (flags & O_TRUNC) || (flags & O_APPEND)) {
    321321                        DEBUG(3,("Permission denied opening %s\n", path));
    322322                        return NT_STATUS_ACCESS_DENIED;
     
    326326                           access into the directory.
    327327                        */
    328                         flags &= ~O_CREAT;
    329                         local_flags &= ~O_CREAT;
     328                        flags &= ~(O_CREAT|O_EXCL);
     329                        local_flags &= ~(O_CREAT|O_EXCL);
    330330                }
    331331        }
Note: See TracChangeset for help on using the changeset viewer.