s3: VFS: Change SMB_VFS_LINK to use const struct smb_filename * instead of const...
[samba.git] / source3 / modules / vfs_glusterfs.c
index 3d28381eaf4b1599eda6c92642ea79471cd8c1ea..870983ea8fc5f247551ad8a9dab2f2eb2849b682 100644 (file)
@@ -1246,9 +1246,12 @@ static int vfs_gluster_readlink(struct vfs_handle_struct *handle,
 }
 
 static int vfs_gluster_link(struct vfs_handle_struct *handle,
-                           const char *oldpath, const char *newpath)
+                               const struct smb_filename *old_smb_fname,
+                               const struct smb_filename *new_smb_fname)
 {
-       return glfs_link(handle->data, oldpath, newpath);
+       return glfs_link(handle->data,
+                       old_smb_fname->base_name,
+                       new_smb_fname->base_name);
 }
 
 static int vfs_gluster_mknod(struct vfs_handle_struct *handle,