diff options
author | Jeremy Allison <jra@samba.org> | 2017-05-24 11:35:50 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-31 22:50:22 +0200 |
commit | 12b801d9d7856f1bb50619962f7e9cb94e75087f (patch) | |
tree | 3f2680ac6ce0d1dff13f652782a16d4e2643c8bd /source3/modules/vfs_media_harmony.c | |
parent | 892476b555f57bcbe40883c533e208c81be168c9 (diff) | |
download | samba-12b801d9d7856f1bb50619962f7e9cb94e75087f.tar.gz |
s3: VFS: Change SMB_VFS_REMOVEXATTR 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/modules/vfs_media_harmony.c')
-rw-r--r-- | source3/modules/vfs_media_harmony.c | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index 2113e0310a1..3c330201f06 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -2281,33 +2281,28 @@ out: * In this case, "name" is an attr name. */ static int mh_removexattr(struct vfs_handle_struct *handle, - const char *path, + const struct smb_filename *smb_fname, const char *name) { int status; - char *clientPath; - TALLOC_CTX *ctx; + struct smb_filename *clientFname = NULL; DEBUG(MH_INFO_DEBUG, ("Entering mh_removexattr\n")); - if (!is_in_media_files(path)) - { - status = SMB_VFS_NEXT_REMOVEXATTR(handle, path, name); + if (!is_in_media_files(smb_fname->base_name)) { + status = SMB_VFS_NEXT_REMOVEXATTR(handle, smb_fname, name); goto out; } - clientPath = NULL; - ctx = talloc_tos(); - - if ((status = alloc_get_client_path(handle, ctx, - path, - &clientPath))) - { + status = alloc_get_client_smb_fname(handle, + talloc_tos(), + smb_fname, + &clientFname); + if (status != 0) { goto err; } - - status = SMB_VFS_NEXT_REMOVEXATTR(handle, clientPath, name); + status = SMB_VFS_NEXT_REMOVEXATTR(handle, clientFname, name); err: - TALLOC_FREE(clientPath); + TALLOC_FREE(clientFname); out: return status; } |