]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbcacls: 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:39 +0000 (19:11 +0000)
That only confuses things

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

index 5f4dd7400da093022f40e3cd0b409c412a9df7a1..b58a0f8cce15886c216f62af2b954d0b8592a307 100644 (file)
@@ -34,9 +34,6 @@
 #include "util_sd.h"
 
 static int test_args;
-
-#define CREATE_ACCESS_READ READ_CONTROL_ACCESS
-
 static int sddl;
 static int query_sec_info = -1;
 static int set_sec_info = -1;
@@ -241,7 +238,7 @@ static uint16_t get_fileinfo(struct cli_state *cli, const char *filename)
                cli,                    /* cli */
                filename,               /* fname */
                0,                      /* CreatFlags */
-               CREATE_ACCESS_READ,     /* CreatFlags */
+               READ_CONTROL_ACCESS,    /* CreatFlags */
                0,                      /* FileAttributes */
                FILE_SHARE_READ|
                FILE_SHARE_WRITE,       /* ShareAccess */