diff options
author | Jeremy Allison <jra@samba.org> | 2016-02-26 14:53:12 -0800 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-03-01 15:25:22 +0100 |
commit | c74ae37fe6df0c7a80733e6ed3ae8844345743a5 (patch) | |
tree | 24e10adbe609d1e99badd8e046e545d9aec2e0de /examples | |
parent | fb4778f4e9834af556bd5aac177fc04e7f09f152 (diff) | |
download | samba-c74ae37fe6df0c7a80733e6ed3ae8844345743a5.tar.gz |
VFS: Modify opendir to take a const struct smb_filename * instead of const char *
Preparing to reduce use of lp_posix_pathnames().
Uses the same techniques as commit 616d068f0cebb8e50a855b6e30f36fccb7f5a3c8
(synthetic_smb_fname()) to cope with modules that
modify the incoming pathname.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/VFS/skel_opaque.c | 6 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 8961627e41f..ae165a6f5ab 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -97,8 +97,10 @@ static NTSTATUS skel_get_dfs_referrals(struct vfs_handle_struct *handle, return NT_STATUS_NOT_IMPLEMENTED; } -static DIR *skel_opendir(vfs_handle_struct *handle, const char *fname, - const char *mask, uint32_t attr) +static DIR *skel_opendir(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + const char *mask, + uint32_t attr) { return NULL; } diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index ac82432df89..549d7d8d845 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -95,10 +95,12 @@ static NTSTATUS skel_get_dfs_referrals(struct vfs_handle_struct *handle, return SMB_VFS_NEXT_GET_DFS_REFERRALS(handle, r); } -static DIR *skel_opendir(vfs_handle_struct *handle, const char *fname, - const char *mask, uint32_t attr) +static DIR *skel_opendir(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + const char *mask, + uint32_t attr) { - return SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr); + return SMB_VFS_NEXT_OPENDIR(handle, smb_fname, mask, attr); } static NTSTATUS skel_snap_check_path(struct vfs_handle_struct *handle, |