From 6acb0d6ca08d72f776d3ba9dc934261a481aa737 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 29 Jun 2017 11:29:33 -0700 Subject: s3: VFS: Change SMB_VFS_CHDIR 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 Reviewed-by: Richard Sharpe --- examples/VFS/skel_opaque.c | 3 ++- examples/VFS/skel_transparent.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index d5c468ebd99..fd81ca03561 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -412,7 +412,8 @@ static int skel_lchown(vfs_handle_struct *handle, return -1; } -static int skel_chdir(vfs_handle_struct *handle, const char *path) +static int skel_chdir(vfs_handle_struct *handle, + const struct smb_filename *smb_fname) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 93872769422..4c061ca329e 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -515,9 +515,10 @@ static int skel_lchown(vfs_handle_struct *handle, return SMB_VFS_NEXT_LCHOWN(handle, smb_fname, uid, gid); } -static int skel_chdir(vfs_handle_struct *handle, const char *path) +static int skel_chdir(vfs_handle_struct *handle, + const struct smb_filename *smb_fname) { - return SMB_VFS_NEXT_CHDIR(handle, path); + return SMB_VFS_NEXT_CHDIR(handle, smb_fname); } static char *skel_getwd(vfs_handle_struct *handle) -- cgit v1.2.1