From a3d7544b8c9e31f06de347049757f833afa4c8e5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 17 May 2018 11:42:03 -0700 Subject: s3: torture: Remove cmd_fchmod_acl(). No longer needed. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- source3/torture/cmd_vfs.c | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'source3/torture') diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 793faf09d12..3ba26031ed8 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -930,36 +930,6 @@ static NTSTATUS cmd_fchmod(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, return NT_STATUS_OK; } -static NTSTATUS cmd_fchmod_acl(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) -{ - int fd; - mode_t mode; - if (argc != 3) { - printf("Usage: fchmod_acl \n"); - return NT_STATUS_OK; - } - - fd = atoi(argv[1]); - mode = atoi(argv[2]); - if (fd < 0 || fd >= 1024) { - printf("fchmod_acl: error=%d (file descriptor out of range)\n", EBADF); - return NT_STATUS_OK; - } - if (vfs->files[fd] == NULL) { - printf("fchmod_acl: error=%d (invalid file descriptor)\n", EBADF); - return NT_STATUS_OK; - } - - if (SMB_VFS_FCHMOD_ACL(vfs->files[fd], mode) == -1) { - printf("fchmod_acl: error=%d (%s)\n", errno, strerror(errno)); - return NT_STATUS_UNSUCCESSFUL; - } - - printf("fchmod_acl: ok\n"); - return NT_STATUS_OK; -} - - static NTSTATUS cmd_chown(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) { struct smb_filename *smb_fname = NULL; @@ -2023,7 +1993,6 @@ struct cmd_set vfs_commands[] = { "fset_nt_acl \n" }, { "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 " }, { "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, -- cgit v1.2.1