Changeset 233 for branches/samba-3.2.x/source/smbd/open.c
- Timestamp:
- May 27, 2009, 11:39:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/smbd/open.c
r232 r233 1194 1194 bool posix_open = False; 1195 1195 bool new_file_created = False; 1196 bool clear_ads = false; 1196 1197 struct file_id id; 1197 1198 NTSTATUS fsp_open = NT_STATUS_ACCESS_DENIED; … … 1326 1327 * exist create. */ 1327 1328 flags2 |= (O_CREAT | O_TRUNC); 1329 clear_ads = true; 1328 1330 break; 1329 1331 … … 1332 1334 * exist create. */ 1333 1335 flags2 |= (O_CREAT | O_TRUNC); 1336 clear_ads = true; 1334 1337 break; 1335 1338 … … 1356 1359 } 1357 1360 flags2 |= O_TRUNC; 1361 clear_ads = true; 1358 1362 break; 1359 1363 … … 1787 1791 1788 1792 SMB_ASSERT(lck != NULL); 1793 1794 /* Delete streams if create_disposition requires it */ 1795 if (file_existed && clear_ads && !is_ntfs_stream_name(fname)) { 1796 status = delete_all_streams(conn, fname); 1797 if (!NT_STATUS_IS_OK(status)) { 1798 TALLOC_FREE(lck); 1799 fd_close(fsp); 1800 return status; 1801 } 1802 } 1789 1803 1790 1804 /* note that we ignore failure for the following. It is
Note:
See TracChangeset
for help on using the changeset viewer.