s3: VFS: Change SMB_VFS_READLINK to use const struct smb_filename * instead of const...
[amitay/samba.git] / source3 / modules / vfs_full_audit.c
index 609ef378fddc0e3abb23881d44b0ad8745ccf4c6..408f834858c886869a4123df3ecb3dc007bae6bd 100644 (file)
@@ -1639,13 +1639,16 @@ static int smb_full_audit_symlink(vfs_handle_struct *handle,
 }
 
 static int smb_full_audit_readlink(vfs_handle_struct *handle,
-                         const char *path, char *buf, size_t bufsiz)
+                       const struct smb_filename *smb_fname,
+                       char *buf,
+                       size_t bufsiz)
 {
        int result;
 
-       result = SMB_VFS_NEXT_READLINK(handle, path, buf, bufsiz);
+       result = SMB_VFS_NEXT_READLINK(handle, smb_fname, buf, bufsiz);
 
-       do_log(SMB_VFS_OP_READLINK, (result >= 0), handle, "%s", path);
+       do_log(SMB_VFS_OP_READLINK, (result >= 0), handle, "%s",
+                       smb_fname->base_name);
 
        return result;
 }