1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

smb: rename NTCREATEX_OPTIONS_PRIVATE_DELETE_ON_CLOSE to NTCREATEX_FLAG_DELETE_ON_CLOSE

Just a shorter name, no change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2020-10-23 17:45:59 +02:00 committed by Jeremy Allison
parent c2f0fd40da
commit 4481259f78
4 changed files with 4 additions and 4 deletions

View File

@ -409,7 +409,7 @@ Offset Data length.
#define NTCREATEX_FLAG_DENY_FCB 0x0002
/* Private options for printer support */
#define NTCREATEX_OPTIONS_PRIVATE_DELETE_ON_CLOSE 0x0008
#define NTCREATEX_FLAG_DELETE_ON_CLOSE 0x0008
/* Private option for streams support */
#define NTCREATEX_OPTIONS_PRIVATE_STREAM_BASEOPEN 0x0010

View File

@ -318,7 +318,7 @@ void print_spool_end(files_struct *fsp, enum file_close_type close_type)
struct dcerpc_binding_handle *b = NULL;
if (fsp->fh->private_options &
NTCREATEX_OPTIONS_PRIVATE_DELETE_ON_CLOSE) {
NTCREATEX_FLAG_DELETE_ON_CLOSE) {
int ret;
/*

View File

@ -449,7 +449,7 @@ 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_OPTIONS_PRIVATE_DELETE_ON_CLOSE;
fsp->fh->private_options |= NTCREATEX_FLAG_DELETE_ON_CLOSE;
DEBUG(3,("smbd_smb2_setinfo_send: "
"Cancelling print job (%s)\n",

View File

@ -9368,7 +9368,7 @@ static void call_trans2setfilepathinfo(connection_struct *conn,
* Doing a DELETE_ON_CLOSE should cancel a print job.
*/
if ((info_level == SMB_SET_FILE_DISPOSITION_INFO) && CVAL(pdata,0)) {
fsp->fh->private_options |= NTCREATEX_OPTIONS_PRIVATE_DELETE_ON_CLOSE;
fsp->fh->private_options |= NTCREATEX_FLAG_DELETE_ON_CLOSE;
DEBUG(3,("call_trans2setfilepathinfo: "
"Cancelling print job (%s)\n",