diff options
author | Jeremy Allison <jra@samba.org> | 2000-04-28 01:08:32 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-04-28 01:08:32 +0000 |
commit | 1f7d96ee0310f50af953621a81d335778b0c76dc (patch) | |
tree | 97dc87afd92af641e353235c5293b729b0d1f258 /source3/locking | |
parent | f8e5696bd6d839dee9c98640519efe2f2512df99 (diff) | |
download | samba-1f7d96ee0310f50af953621a81d335778b0c76dc.tar.gz samba-1f7d96ee0310f50af953621a81d335778b0c76dc.tar.bz2 samba-1f7d96ee0310f50af953621a81d335778b0c76dc.zip |
Forgot to close when "posix locking" is set to False.
Jeremy.
(This used to be commit b812f09ba8ef074c9ff0747ea03a1e33f1ebbe71)
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/locking.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); |