diff options
author | Ralph Boehme <slow@samba.org> | 2020-10-23 17:47:46 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2020-12-16 09:08:30 +0000 |
commit | da786ccd1d2bf834b75f9a9c067f6ae4911dd5a2 (patch) | |
tree | baa9d32cb12f1d02d7c86b7da56044f85349ba58 /source3/smbd/smb2_setinfo.c | |
parent | 059dee953d6cc443eb2cd81d9d92cdeedc9390ea (diff) | |
download | samba-da786ccd1d2bf834b75f9a9c067f6ae4911dd5a2.tar.gz |
smbd: use fh_[get|set]_private_options()
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/smb2_setinfo.c')
-rw-r--r-- | source3/smbd/smb2_setinfo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/smb2_setinfo.c b/source3/smbd/smb2_setinfo.c index 61770281583..83706b44c92 100644 --- a/source3/smbd/smb2_setinfo.c +++ b/source3/smbd/smb2_setinfo.c @@ -450,7 +450,10 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx, if ((file_info_level == SMB_SET_FILE_DISPOSITION_INFO) && in_input_buffer.length >= 1 && CVAL(in_input_buffer.data,0)) { - fsp->fh->private_options |= NTCREATEX_FLAG_DELETE_ON_CLOSE; + uint32_t new_private_options = + fh_get_private_options(fsp->fh); + new_private_options |= NTCREATEX_FLAG_DELETE_ON_CLOSE; + fh_set_private_options(fsp->fh, new_private_options); DEBUG(3,("smbd_smb2_setinfo_send: " "Cancelling print job (%s)\n", |