From 7d3059cd7415c8da429f1f18cc562c6d138d77cf Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 17 May 2018 11:21:14 -0700 Subject: [PATCH] s3: torture: Remove cmd_chmod_acl(). No longer needed. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- docs-xml/manpages/vfstest.1.xml | 1 - source3/torture/cmd_vfs.c | 32 -------------------------------- 2 files changed, 33 deletions(-) diff --git a/docs-xml/manpages/vfstest.1.xml b/docs-xml/manpages/vfstest.1.xml index 9990e2778b1..5a4ea1254b9 100644 --- a/docs-xml/manpages/vfstest.1.xml +++ b/docs-xml/manpages/vfstest.1.xml @@ -125,7 +125,6 @@ fset_nt_acl - VFS fset_nt_acl() set_nt_acl - VFS open() and fset_nt_acl() fchmod_acl - VFS fchmod_acl() - chmod_acl - VFS chmod_acl() sys_acl_get_file - VFS sys_acl_get_file() sys_acl_get_fd - VFS sys_acl_get_fd() sys_acl_blob_get_file - VFS sys_acl_blob_get_file() diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index a8c7685e1d3..793faf09d12 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -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 \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 \n" }, { "fchmod_acl", cmd_fchmod_acl, "VFS fchmod_acl()", "fchmod_acl " }, - { "chmod_acl", cmd_chmod_acl, "VFS chmod_acl()", "chmod_acl " }, { "sys_acl_get_file", cmd_sys_acl_get_file, "VFS sys_acl_get_file()", "sys_acl_get_file " }, { "sys_acl_get_fd", cmd_sys_acl_get_fd, "VFS sys_acl_get_fd()", "sys_acl_get_fd " }, { "sys_acl_blob_get_file", cmd_sys_acl_blob_get_file, -- 2.11.4.GIT