summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_commit.c
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-09-26 21:46:51 +0200
committerRalph Boehme <slow@samba.org>2020-12-16 09:08:30 +0000
commit50ce980902c9bd76bb4e800fb7d142013605e737 (patch)
tree882bbb4f1a20f9a935b88fda9324704c06129b95 /source3/modules/vfs_commit.c
parent28f43fdadc89bdc2e3041fe077df2389acd0ceaa (diff)
downloadsamba-50ce980902c9bd76bb4e800fb7d142013605e737.tar.gz
smbd: use fsp_set_fd()
No change in behaviour. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules/vfs_commit.c')
-rw-r--r--source3/modules/vfs_commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_commit.c b/source3/modules/vfs_commit.c
index fae94329af3..4c6142e83dc 100644
--- a/source3/modules/vfs_commit.c
+++ b/source3/modules/vfs_commit.c
@@ -240,7 +240,7 @@ static int commit_openat(struct vfs_handle_struct *handle,
* but also practiced elsewhere -
* needed for calling the VFS.
*/
- fsp->fh->fd = fd;
+ fsp_set_fd(fsp, fd);
if (SMB_VFS_FSTAT(fsp, &st) == -1) {
int saved_errno = errno;
SMB_VFS_CLOSE(fsp);