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 /source3/modules/vfs_full_audit.c | |
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 'source3/modules/vfs_full_audit.c')
-rw-r--r-- | source3/modules/vfs_full_audit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index 408f834858c..1267ef3d226 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -1626,14 +1626,15 @@ static bool smb_full_audit_getlock(vfs_handle_struct *handle, files_struct *fsp, } static int smb_full_audit_symlink(vfs_handle_struct *handle, - const char *oldpath, const char *newpath) + const char *link_contents, + const struct smb_filename *new_smb_fname) { int result; - result = SMB_VFS_NEXT_SYMLINK(handle, oldpath, newpath); + result = SMB_VFS_NEXT_SYMLINK(handle, link_contents, new_smb_fname); do_log(SMB_VFS_OP_SYMLINK, (result >= 0), handle, - "%s|%s", oldpath, newpath); + "%s|%s", link_contents, new_smb_fname->base_name); return result; } |