summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-05-23 17:35:59 -0700
committerJeremy Allison <jra@samba.org>2017-05-31 22:50:22 +0200
commitf5dd864606d5e587b85695ea11520df31b353fb8 (patch)
tree75ef7403f7ee20b056226d80b2cf12d41e861d8e /source3/torture
parentcea8e57eac2ed7b90a5c5d207bf392ff0546398e (diff)
downloadsamba-f5dd864606d5e587b85695ea11520df31b353fb8.tar.gz
s3: VFS: Change SMB_VFS_SYS_ACL_BLOB_GET_FILE to use const struct smb_filename * instead of const char *.
We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/cmd_vfs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c
index 390cffa34e4..0bb29035972 100644
--- a/source3/torture/cmd_vfs.c
+++ b/source3/torture/cmd_vfs.c
@@ -1718,13 +1718,20 @@ static NTSTATUS cmd_sys_acl_blob_get_file(struct vfs_state *vfs,
DATA_BLOB blob;
int ret;
size_t i;
+ struct smb_filename *smb_fname = NULL;
if (argc != 2) {
printf("Usage: sys_acl_get_file <path>\n");
return NT_STATUS_OK;
}
- ret = SMB_VFS_SYS_ACL_BLOB_GET_FILE(vfs->conn, argv[1], talloc_tos(),
+ smb_fname = synthetic_smb_fname_split(talloc_tos(),
+ argv[1],
+ lp_posix_pathnames());
+ if (smb_fname == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
+ ret = SMB_VFS_SYS_ACL_BLOB_GET_FILE(vfs->conn, smb_fname, talloc_tos(),
&description, &blob);
if (ret != 0) {
printf("sys_acl_blob_get_file failed (%s)\n", strerror(errno));