From: Volker Lendecke Date: Tue, 26 May 2020 06:07:41 +0000 (+0200) Subject: smbcacls: Reformat a call to cli_ntcreate() X-Git-Tag: ldb-2.2.0~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41ff5579759a577c2dfdfed955c970510375b25f;p=thirdparty%2Fsamba.git smbcacls: Reformat a call to cli_ntcreate() The next patch will change one of the arguments Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 3e91fc8b025..5f4dd7400da 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -237,9 +237,19 @@ static uint16_t get_fileinfo(struct cli_state *cli, const char *filename) /* The desired access below is the only one I could find that works with NT4, W2KP and Samba */ - status = cli_ntcreate(cli, filename, 0, CREATE_ACCESS_READ, - 0, FILE_SHARE_READ|FILE_SHARE_WRITE, - FILE_OPEN, 0x0, 0x0, &fnum, &cr); + status = cli_ntcreate( + cli, /* cli */ + filename, /* fname */ + 0, /* CreatFlags */ + CREATE_ACCESS_READ, /* CreatFlags */ + 0, /* FileAttributes */ + FILE_SHARE_READ| + FILE_SHARE_WRITE, /* ShareAccess */ + FILE_OPEN, /* CreateDisposition */ + 0x0, /* CreateOptions */ + 0x0, /* SecurityFlags */ + &fnum, /* pfid */ + &cr); /* cr */ if (!NT_STATUS_IS_OK(status)) { printf("Failed to open %s: %s\n", filename, nt_errstr(status)); return 0;