Index: smbd/open.c =================================================================== --- smbd/open.c (revision 10706) +++ smbd/open.c (working copy) @@ -1451,6 +1451,10 @@ NT_STATUS_ACCESS_DENIED); errno = EACCES; return NULL; + } else { + DEBUG(0,("open_file_ntcreate: file %s flags = 0%o, file_existed = %d, can_write = %d \ + attributes = 0x%x\n", + fname, flags, file_existed, CAN_WRITE(conn), existing_dos_attributes )); } fsp = file_new(conn);