sharesec: Use non-numerical output for sharesec
authorChristof Schmitt <cs@samba.org>
Tue, 9 Jun 2015 16:50:18 +0000 (09:50 -0700)
committerVolker Lendecke <vl@samba.org>
Wed, 17 Jun 2015 08:47:11 +0000 (10:47 +0200)
This is an easy change to get the sharesec output back to the format
used before. It is also easier to understand than the output of the
flags.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11324

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/utils/sharesec.c

index 941b3a4d2b179375a131015102b0eb99bfab6633..d9f81587f0ef1b4a4c85a7632c6f8ad3970ddb20 100644 (file)
@@ -182,7 +182,7 @@ static int change_share_sec(TALLOC_CTX *mem_ctx, const char *sharename, char *th
                /* should not happen */
                return 0;
        case SMB_ACL_VIEW:
-               sec_desc_print(NULL, stdout, old, true);
+               sec_desc_print(NULL, stdout, old, false);
                return 0;
        case SMB_ACL_DELETE:
            for (i=0;sd->dacl && i<sd->dacl->num_aces;i++) {
@@ -203,7 +203,7 @@ static int change_share_sec(TALLOC_CTX *mem_ctx, const char *sharename, char *th
 
                if (!found) {
                        printf("ACL for ACE:");
-                       print_ace(NULL, stdout, &sd->dacl->aces[i], true);
+                       print_ace(NULL, stdout, &sd->dacl->aces[i], false);
                        printf(" not found\n");
                }
            }