s3: torture: Remove cmd_chmod_acl().
authorJeremy Allison <jra@samba.org>
Thu, 17 May 2018 18:21:14 +0000 (11:21 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 25 May 2018 16:39:24 +0000 (18:39 +0200)
No longer needed.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
docs-xml/manpages/vfstest.1.xml
source3/torture/cmd_vfs.c

index 9990e2778b10815624e2a6e098f907600bdbb8f8..5a4ea1254b9b43db7b0fffbbf223a41166e107a2 100644 (file)
                <listitem><para><command>fset_nt_acl</command> - VFS fset_nt_acl()</para></listitem>
                <listitem><para><command>set_nt_acl</command> - VFS open() and fset_nt_acl()</para></listitem>
                <listitem><para><command>fchmod_acl</command> - VFS fchmod_acl()</para></listitem>
-               <listitem><para><command>chmod_acl</command> - VFS chmod_acl()</para></listitem>
                <listitem><para><command>sys_acl_get_file</command> - VFS sys_acl_get_file()</para></listitem>
                <listitem><para><command>sys_acl_get_fd</command> - VFS sys_acl_get_fd()</para></listitem>
                <listitem><para><command>sys_acl_blob_get_file</command> - VFS sys_acl_blob_get_file()</para></listitem>
index a8c7685e1d3b91c97df9358349010313fe19e50e..793faf09d12cca2142b496ad3d45d887af6bf855 100644 (file)
@@ -930,37 +930,6 @@ static NTSTATUS cmd_fchmod(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc,
        return NT_STATUS_OK;
 }
 
-
-static NTSTATUS cmd_chmod_acl(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv)
-{
-       struct smb_filename *smb_fname = NULL;
-       mode_t mode;
-       if (argc != 3) {
-               printf("Usage: chmod_acl <path> <mode>\n");
-               return NT_STATUS_OK;
-       }
-
-       mode = atoi(argv[2]);
-
-       smb_fname = synthetic_smb_fname(talloc_tos(),
-                                       argv[1],
-                                       NULL,
-                                       NULL,
-                                       ssf_flags());
-       if (smb_fname == NULL) {
-               return NT_STATUS_NO_MEMORY;
-       }
-
-       if (SMB_VFS_CHMOD_ACL(vfs->conn, smb_fname, mode) == -1) {
-               printf("chmod_acl: error=%d (%s)\n", errno, strerror(errno));
-               return NT_STATUS_UNSUCCESSFUL;
-       }
-
-       printf("chmod_acl: ok\n");
-       return NT_STATUS_OK;
-}
-
-
 static NTSTATUS cmd_fchmod_acl(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv)
 {
        int fd;
@@ -2055,7 +2024,6 @@ struct cmd_set vfs_commands[] = {
        { "set_nt_acl", cmd_set_nt_acl, "VFS open() and fset_nt_acl()", 
          "set_nt_acl <file>\n" },
        { "fchmod_acl",   cmd_fchmod_acl,   "VFS fchmod_acl()",    "fchmod_acl <fd> <mode>" },
-       { "chmod_acl",   cmd_chmod_acl,   "VFS chmod_acl()",    "chmod_acl <path> <mode>" },
        { "sys_acl_get_file", cmd_sys_acl_get_file, "VFS sys_acl_get_file()", "sys_acl_get_file <path>" },
        { "sys_acl_get_fd", cmd_sys_acl_get_fd, "VFS sys_acl_get_fd()", "sys_acl_get_fd <fd>" },
        { "sys_acl_blob_get_file", cmd_sys_acl_blob_get_file,