diff options
author | Jeremy Allison <jra@samba.org> | 2017-06-07 15:03:37 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-06-18 02:49:25 +0200 |
commit | 6ae2d86b9ccc0ebe73dc911a1d5f06bd53613acf (patch) | |
tree | 5b46b8fc5f2c144c0d65b3278ffd9da0c2acdb67 /examples | |
parent | 4ad426a7c6c9fffa41df5bcafd9f420c257b6805 (diff) | |
download | samba-6ae2d86b9ccc0ebe73dc911a1d5f06bd53613acf.tar.gz |
s3: VFS: Change SMB_VFS_READLINK 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')
-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 ec81bdc9fef..792f728f83a 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -483,8 +483,10 @@ static int skel_symlink(vfs_handle_struct *handle, const char *oldpath, return -1; } -static int skel_vfs_readlink(vfs_handle_struct *handle, const char *path, - char *buf, size_t bufsiz) +static int skel_vfs_readlink(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + char *buf, + size_t bufsiz) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index db3ec35bd58..11512e3815b 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -576,10 +576,12 @@ static int skel_symlink(vfs_handle_struct *handle, const char *oldpath, return SMB_VFS_NEXT_SYMLINK(handle, oldpath, newpath); } -static int skel_vfs_readlink(vfs_handle_struct *handle, const char *path, - char *buf, size_t bufsiz) +static int skel_vfs_readlink(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + char *buf, + size_t bufsiz) { - return SMB_VFS_NEXT_READLINK(handle, path, buf, bufsiz); + return SMB_VFS_NEXT_READLINK(handle, smb_fname, buf, bufsiz); } static int skel_link(vfs_handle_struct *handle, |