mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3/libsmb: clang: Fix 'Value stored to 'create_options' is never read'
It looks like the create_options are accumulated as the depending on the failure reasons returned for cli_smb2_create_fnum (except for when a directory is encountered) this looks like a mistake Fixes: source3/libsmb/cli_smb2_fnum.c:1870:3: warning: Value stored to 'create_options' is never read <--[clang] create_options |= FILE_DIRECTORY_FILE; ^ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
25a256bedf
commit
4995a0e7e0
@ -1876,7 +1876,7 @@ static NTSTATUS get_fnum_from_path(struct cli_state *cli,
|
||||
FILE_ATTRIBUTE_DIRECTORY, /* file attributes */
|
||||
FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, /* share_access */
|
||||
FILE_OPEN, /* create_disposition */
|
||||
FILE_DIRECTORY_FILE, /* create_options */
|
||||
create_options, /* create_options */
|
||||
NULL,
|
||||
pfnum,
|
||||
NULL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user