1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-21 03:33:16 +03:00

r8059: fixed handling of delete on close fir directories

This commit is contained in:
Andrew Tridgell
2005-07-01 12:59:23 +00:00
committed by Gerald (Jerry) Carter
parent 214e51b3c8
commit 14f51a99bc

View File

@@ -1243,6 +1243,11 @@ NTSTATUS pvfs_change_create_options(struct pvfs_state *pvfs,
return NT_STATUS_CANNOT_DELETE;
}
if (f->handle->name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) {
f->handle->create_options = create_options;
return NT_STATUS_OK;
}
lck = odb_lock(req, pvfs->odb_context, &f->handle->odb_locking_key);
if (lck == NULL) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;