diff options
author | Jeremy Allison <jra@samba.org> | 2017-06-08 16:25:58 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-06-18 07:03:18 +0200 |
commit | 8e43af0f81e644411f5a719860383373b210cc8b (patch) | |
tree | f53b74f0cdd90f59e5c48040789761cf3acea57b /examples | |
parent | 6ae2d86b9ccc0ebe73dc911a1d5f06bd53613acf (diff) | |
download | samba-8e43af0f81e644411f5a719860383373b210cc8b.tar.gz |
s3: VFS: Change SMB_VFS_SYMLINK 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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sun Jun 18 07:03:18 CEST 2017 on sn-devel-144
Diffstat (limited to 'examples')
-rw-r--r-- | examples/VFS/skel_opaque.c | 5 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 792f728f83a..d5c468ebd99 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -476,8 +476,9 @@ static bool skel_getlock(vfs_handle_struct *handle, files_struct *fsp, return false; } -static int skel_symlink(vfs_handle_struct *handle, const char *oldpath, - const char *newpath) +static int skel_symlink(vfs_handle_struct *handle, + const char *link_contents, + const struct smb_filename *new_smb_fname) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 11512e3815b..93872769422 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -570,10 +570,11 @@ static bool skel_getlock(vfs_handle_struct *handle, files_struct *fsp, return SMB_VFS_NEXT_GETLOCK(handle, fsp, poffset, pcount, ptype, ppid); } -static int skel_symlink(vfs_handle_struct *handle, const char *oldpath, - const char *newpath) +static int skel_symlink(vfs_handle_struct *handle, + const char *link_contents, + const struct smb_filename *new_smb_fname) { - return SMB_VFS_NEXT_SYMLINK(handle, oldpath, newpath); + return SMB_VFS_NEXT_SYMLINK(handle, link_contents, new_smb_fname); } static int skel_vfs_readlink(vfs_handle_struct *handle, |