smbcacls: Use direct struct initialization
authorVolker Lendecke <vl@samba.org>
Tue, 20 Oct 2020 07:24:06 +0000 (09:24 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 21 Oct 2020 19:04:38 +0000 (19:04 +0000)
Use implicit NULL/false initialization

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

index 51f70ed6162508a0f3d2f835cb625d66b7119ebd..2ff30ad495ee87856d347975a1652372a38a6353 100644 (file)
@@ -1864,15 +1864,13 @@ int main(int argc, char *argv[])
                result = owner_set(targetcli, change_mode, targetfile, owner_username);
        } else if (the_acl) {
                if (inheritance) {
-                       struct cacl_callback_state cbstate;
-                       cbstate.auth_info = popt_get_cmdline_auth_info();
-                       cbstate.cli = targetcli;
-                       cbstate.aclsd = NULL;
-                       cbstate.acl_to_add = NULL;
-                       cbstate.mode = mode;
-                       cbstate.the_acl = the_acl;
-                       cbstate.acl_no_propagate = false;
-                       cbstate.numeric = numeric;
+                       struct cacl_callback_state cbstate = {
+                               .auth_info = popt_get_cmdline_auth_info(),
+                               .cli = targetcli,
+                               .mode = mode,
+                               .the_acl = the_acl,
+                               .numeric = numeric,
+                       };
                        result = inheritance_cacl_set(targetfile, &cbstate);
                } else {
                        result =  cacl_set(targetcli,