smbcacls: Reformat a call to cli_ntcreate()
authorVolker Lendecke <vl@samba.org>
Tue, 26 May 2020 06:07:41 +0000 (08:07 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 28 May 2020 19:11:39 +0000 (19:11 +0000)
The next patch will change one of the arguments

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/smbcacls.c

index 3e91fc8b0253b0755cbfac5e25eb73b99fa0bbf3..5f4dd7400da093022f40e3cd0b409c412a9df7a1 100644 (file)
@@ -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;