diff options
author | Jeremy Allison <jra@samba.org> | 2016-03-01 16:20:25 -0800 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-03-03 09:04:14 +0100 |
commit | ac8fba6ef7093836eb6988e749325b69e7a7fde1 (patch) | |
tree | 576c296d7bc49192f7cb333f034d4721f075b261 /source3/modules/vfs_unityed_media.c | |
parent | d7ca174744001fabdc32e1c334dad347bb985756 (diff) | |
download | samba-ac8fba6ef7093836eb6988e749325b69e7a7fde1.tar.gz |
VFS: Modify chmod to take a const struct smb_filename * instead of const char *
Preparing to reduce use of lp_posix_pathnames().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/modules/vfs_unityed_media.c')
-rw-r--r-- | source3/modules/vfs_unityed_media.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index 191d39feab9..65e4d4cbbcd 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -1179,28 +1179,30 @@ err: } static int um_chmod(vfs_handle_struct *handle, - const char *path, - mode_t mode) + const struct smb_filename *smb_fname, + mode_t mode) { int status; - char *client_path = NULL; + struct smb_filename *client_fname = NULL; DEBUG(10, ("Entering um_chmod\n")); - if (!is_in_media_files(path)) { - return SMB_VFS_NEXT_CHMOD(handle, path, mode); + if (!is_in_media_files(smb_fname->base_name)) { + return SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode); } - status = alloc_get_client_path(handle, talloc_tos(), - path, &client_path); + status = alloc_get_client_smb_fname(handle, + talloc_tos(), + smb_fname, + &client_fname); if (status != 0) { goto err; } - status = SMB_VFS_NEXT_CHMOD(handle, client_path, mode); + status = SMB_VFS_NEXT_CHMOD(handle, client_fname, mode); err: - TALLOC_FREE(client_path); + TALLOC_FREE(client_fname); return status; } |