mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r15660: Without this when using smbcquotas I get
close fd=-1 fnum=4321 (numopen=1) close_file: Could not get share mode lock for file $Extend/$Quota:$Q:$INDEX_ALLOCATION unix_error_packet: error string = Das Argument ist ungültig error packet at smbd/reply.c(3325) cmd=4 (SMBclose) NT_STATUS_INVALID_HANDLE so a fake file needs special close handling I think. Jeremy, can you check this? Thanks, Volker
This commit is contained in:
parent
a85dfb9eff
commit
f66b9701b5
@ -447,6 +447,8 @@ int close_file(files_struct *fsp, enum file_close_type close_type)
|
||||
return close_directory(fsp, close_type);
|
||||
else if (fsp->is_stat)
|
||||
return close_stat(fsp);
|
||||
else if (fsp->fake_file_handle != NULL)
|
||||
return close_fake_file(fsp);
|
||||
else
|
||||
return close_normal_file(fsp, close_type);
|
||||
}
|
||||
|
@ -156,3 +156,9 @@ void destroy_fake_file_handle(FAKE_FILE_HANDLE **fh)
|
||||
talloc_destroy((*fh)->mem_ctx);
|
||||
(*fh) = NULL;
|
||||
}
|
||||
|
||||
int close_fake_file(files_struct *fsp)
|
||||
{
|
||||
file_free(fsp);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user