1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r8059: fixed handling of delete on close fir directories

(This used to be commit 14f51a99bc)
This commit is contained in:
Andrew Tridgell 2005-07-01 12:59:23 +00:00 committed by Gerald (Jerry) Carter
parent e7c530a9ea
commit 95a9d9aabf

View File

@ -1243,6 +1243,11 @@ NTSTATUS pvfs_change_create_options(struct pvfs_state *pvfs,
return NT_STATUS_CANNOT_DELETE; 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); lck = odb_lock(req, pvfs->odb_context, &f->handle->odb_locking_key);
if (lck == NULL) { if (lck == NULL) {
return NT_STATUS_INTERNAL_DB_CORRUPTION; return NT_STATUS_INTERNAL_DB_CORRUPTION;