Changeset 309 for branches/samba-3.3.x/source/smbd/open.c
- Timestamp:
- Aug 4, 2009, 8:51:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/smbd/open.c
r224 r309 318 318 if (!CAN_WRITE(conn)) { 319 319 /* 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)) { 321 321 DEBUG(3,("Permission denied opening %s\n", path)); 322 322 return NT_STATUS_ACCESS_DENIED; … … 326 326 access into the directory. 327 327 */ 328 flags &= ~ O_CREAT;329 local_flags &= ~ O_CREAT;328 flags &= ~(O_CREAT|O_EXCL); 329 local_flags &= ~(O_CREAT|O_EXCL); 330 330 } 331 331 }
Note:
See TracChangeset
for help on using the changeset viewer.