mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +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:
parent
c2f0fd40da
commit
4481259f78
@ -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
|
||||
|
@ -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;
|
||||
|
||||
/*
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user