diff options
Diffstat (limited to 'source3/modules/vfs_unityed_media.c')
-rw-r--r-- | source3/modules/vfs_unityed_media.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index 45232e1781c..435deeb0579 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -1267,27 +1267,29 @@ err: } static int um_chdir(vfs_handle_struct *handle, - const char *path) + const struct smb_filename *smb_fname) { int status; - char *client_path = NULL; + struct smb_filename *client_fname = NULL; DEBUG(10, ("Entering um_chdir\n")); - if (!is_in_media_files(path)) { - return SMB_VFS_NEXT_CHDIR(handle, path); + if (!is_in_media_files(smb_fname->base_name)) { + return SMB_VFS_NEXT_CHDIR(handle, smb_fname); } - 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_CHDIR(handle, client_path); + status = SMB_VFS_NEXT_CHDIR(handle, client_fname); err: - TALLOC_FREE(client_path); + TALLOC_FREE(client_fname); return status; } |