diff options
author | Jeremy Allison <jra@samba.org> | 2017-06-29 11:29:33 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-07-01 03:07:11 +0200 |
commit | 6acb0d6ca08d72f776d3ba9dc934261a481aa737 (patch) | |
tree | 0ca605c49d66648ce79c274ec7fdbbfa7a3571a3 /examples/VFS | |
parent | 73bee8b690edcc946f2e98aca711dd77d104e76e (diff) | |
download | samba-6acb0d6ca08d72f776d3ba9dc934261a481aa737.tar.gz |
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 <jra@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Diffstat (limited to 'examples/VFS')
-rw-r--r-- | examples/VFS/skel_opaque.c | 3 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 5 |
2 files changed, 5 insertions, 3 deletions
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) |