From: Ralph Boehme Date: Sun, 4 Aug 2019 07:29:44 +0000 (+0200) Subject: s3: smbd: fix a comment in fd_close() X-Git-Tag: tdb-1.4.2~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37bb6229ad48b7a443eefa19a1845ce92a5bf546;p=thirdparty%2Fsamba.git s3: smbd: fix a comment in fd_close() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 8fcd7b3b580..5ff83741dcd 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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. */