From 1f7d96ee0310f50af953621a81d335778b0c76dc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 28 Apr 2000 01:08:32 +0000 Subject: Forgot to close when "posix locking" is set to False. Jeremy. (This used to be commit b812f09ba8ef074c9ff0747ea03a1e33f1ebbe71) --- source3/locking/locking.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 62304076af..fa56e0a628 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -109,8 +109,11 @@ int fd_close_posix(struct connection_struct *conn, files_struct *fsp) int ret; size_t i; - if (!lp_posix_locking(SNUM(conn))) - return True; + if (!lp_posix_locking(SNUM(conn))) { + ret = conn->vfs_ops.close(fsp->fd); + fsp->fd = -1; + return ret; + } pc = find_pending_close_entry(fsp->dev, fsp->inode); -- cgit