Fix bug 342. Short version of --add now -a instead of -A.
authorTim Potter <tpot@samba.org>
Mon, 1 Sep 2003 10:43:21 +0000 (10:43 +0000)
committerTim Potter <tpot@samba.org>
Mon, 1 Sep 2003 10:43:21 +0000 (10:43 +0000)
(This used to be commit 233568dd6b08d3dfb48a712b763dfc31c03b229d)

docs/docbook/manpages/smbcacls.1.xml
source3/utils/smbcacls.c

index bb57ab563ddaf006eae3cfa7956fe5591f03f3a3..78980a6aec5d75b3641e86b0b7f4006075004771 100644 (file)
@@ -23,7 +23,7 @@
                <arg choice="req">filename</arg>
                <arg choice="opt">-D acls</arg>
                <arg choice="opt">-M acls</arg>
-               <arg choice="opt">-A acls</arg>
+               <arg choice="opt">-a acls</arg>
                <arg choice="opt">-S acls</arg>
                <arg choice="opt">-C name</arg>
                <arg choice="opt">-G name</arg>
@@ -55,7 +55,7 @@
 
        <variablelist>
                <varlistentry>
-               <term>-A acls</term>
+               <term>-a acls</term>
                <listitem><para>Add the ACLs specified to the ACL list.  Existing 
                access control entries are unchanged. </para></listitem>
                </varlistentry>
index c90c042106e531c76a6a228bcffd3efc32dd27f2..58ee57b5dd2ad0d4d62d10c8150bc2c7cb99004e 100644 (file)
@@ -751,7 +751,7 @@ static struct cli_state *connect_one(const char *share)
                POPT_AUTOHELP
                { "delete", 'D', POPT_ARG_STRING, NULL, 'D', "Delete an acl", "ACL" },
                { "modify", 'M', POPT_ARG_STRING, NULL, 'M', "Modify an acl", "ACL" },
-               { "add", 'A', POPT_ARG_STRING, NULL, 'A', "Add an acl", "ACL" },
+               { "add", 'a', POPT_ARG_STRING, NULL, 'a', "Add an acl", "ACL" },
                { "set", 'S', POPT_ARG_STRING, NULL, 'S', "Set acls", "ACLS" },
                { "chown", 'C', POPT_ARG_STRING, NULL, 'C', "Change ownership of a file", "USERNAME" },
                { "chgrp", 'G', POPT_ARG_STRING, NULL, 'G', "Change group ownership of a file", "GROUPNAME" },
@@ -796,7 +796,7 @@ static struct cli_state *connect_one(const char *share)
                        mode = SMB_ACL_MODIFY;
                        break;
 
-               case 'A':
+               case 'a':
                        the_acl = smb_xstrdup(poptGetOptArg(pc));
                        mode = SMB_ACL_ADD;
                        break;