From: Ralph Boehme Date: Fri, 23 Oct 2020 11:08:50 +0000 (+0200) Subject: smb: rename NTCREATEX_OPTIONS_PRIVATE_STREAM_BASEOPEN to NTCREATEX_FLAG_STREAM_BASEOPEN X-Git-Tag: talloc-2.3.2~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45017205c34c83272638c3f235eef0ebc0aaa3ca;p=thirdparty%2Fsamba.git smb: rename NTCREATEX_OPTIONS_PRIVATE_STREAM_BASEOPEN to NTCREATEX_FLAG_STREAM_BASEOPEN Just a shorter name, no change in behaviour. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/include/smb.h b/source3/include/smb.h index 51cbc442e8e..c727b481dc5 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -412,7 +412,7 @@ Offset Data length. #define NTCREATEX_FLAG_DELETE_ON_CLOSE 0x0008 /* Private option for streams support */ -#define NTCREATEX_OPTIONS_PRIVATE_STREAM_BASEOPEN 0x0010 +#define NTCREATEX_FLAG_STREAM_BASEOPEN 0x0010 /* Flag for NT transact rename call. */ #define RENAME_REPLACE_IF_EXISTS 1 diff --git a/source3/locking/locking.c b/source3/locking/locking.c index c3fe5a246e2..06c6a91cd59 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -1069,7 +1069,7 @@ static bool file_has_open_streams_fn( struct file_has_open_streams_state *state = private_data; if ((e->private_options & - NTCREATEX_OPTIONS_PRIVATE_STREAM_BASEOPEN) == 0) { + NTCREATEX_FLAG_STREAM_BASEOPEN) == 0) { return false; } diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 72df5a5dcfe..0250df69db0 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -5600,7 +5600,7 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, } } - base_privflags = NTCREATEX_OPTIONS_PRIVATE_STREAM_BASEOPEN; + base_privflags = NTCREATEX_FLAG_STREAM_BASEOPEN; /* Open the base file. */ status = create_file_unixpath(conn,