]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbclient: Remove the CREATE_ACCESS_READ #define
authorVolker Lendecke <vl@samba.org>
Tue, 26 May 2020 06:04:52 +0000 (08:04 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 28 May 2020 19:11:38 +0000 (19:11 +0000)
That only confuses things

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

index 623d466802967a582757a08771fb54d7ae9b419f..2a95911f54d68a8c1c3af9631bbeb642c094e8bc 100644 (file)
@@ -66,8 +66,6 @@ static int max_protocol = -1;
 static int process_tok(char *tok);
 static int cmd_help(void);
 
-#define CREATE_ACCESS_READ READ_CONTROL_ACCESS
-
 /* value for unused fid field in trans2 secondary request */
 #define FID_UNUSED (0xFFFF)
 
@@ -610,7 +608,7 @@ static NTSTATUS display_finfo(struct cli_state *cli_state, struct file_info *fin
                        cli_state,            /* cli */
                        afname,               /* fname */
                        0,                    /* CreatFlags */
-                       CREATE_ACCESS_READ,   /* DesiredAccess */
+                       READ_CONTROL_ACCESS,  /* DesiredAccess */
                        0,                    /* FileAttributes */
                        FILE_SHARE_READ|
                        FILE_SHARE_WRITE,     /* ShareAccess */