mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3: smbd: fix a comment in fd_close()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3e0cafc2b5
commit
37bb6229ad
@ -833,7 +833,11 @@ NTSTATUS fd_close(files_struct *fsp)
|
||||
dptr_CloseDir(fsp);
|
||||
}
|
||||
if (fsp->fh->fd == -1) {
|
||||
return NT_STATUS_OK; /* What we used to call a stat open. */
|
||||
/*
|
||||
* Either a directory where the dptr_CloseDir() already closed
|
||||
* the fd or a stat open.
|
||||
*/
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
if (fsp->fh->ref_count > 1) {
|
||||
return NT_STATUS_OK; /* Shared handle. Only close last reference. */
|
||||
|
Loading…
Reference in New Issue
Block a user