summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-08-30 14:36:58 -0700
committerJeremy Allison <jra@samba.org>2019-09-03 21:15:44 +0000
commita676e494cde2d533718836c4d443cfe0dd9f5aec (patch)
tree71249c2e1c79f70f7811778231ce46bf527fd8ad
parent8ef64494c6d779eac9a4441661ee56586d0d5764 (diff)
downloadsamba-a676e494cde2d533718836c4d443cfe0dd9f5aec.tar.gz
s3: VFS: vfs_unityed_media. Remove symlink_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
-rw-r--r--source3/modules/vfs_unityed_media.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c
index 75da73765c4..914b6c3a48d 100644
--- a/source3/modules/vfs_unityed_media.c
+++ b/source3/modules/vfs_unityed_media.c
@@ -1327,44 +1327,6 @@ err:
return status;
}
-static int um_symlink(vfs_handle_struct *handle,
- const char *link_contents,
- const struct smb_filename *new_smb_fname)
-{
- int status;
- char *client_link_contents = NULL;
- struct smb_filename *new_client_fname = NULL;
-
- DEBUG(10, ("Entering um_symlink\n"));
-
- if (!is_in_media_files(link_contents) &&
- !is_in_media_files(new_smb_fname->base_name)) {
- return SMB_VFS_NEXT_SYMLINK(handle,
- link_contents,
- new_smb_fname);
- }
-
- status = alloc_get_client_path(handle, talloc_tos(),
- link_contents, &client_link_contents);
- if (status != 0) {
- goto err;
- }
- status = alloc_get_client_smb_fname(handle, talloc_tos(),
- new_smb_fname, &new_client_fname);
- if (status != 0) {
- goto err;
- }
-
- status = SMB_VFS_NEXT_SYMLINK(handle,
- client_link_contents,
- new_client_fname);
-
-err:
- TALLOC_FREE(client_link_contents);
- TALLOC_FREE(new_client_fname);
- return status;
-}
-
static int um_symlinkat(vfs_handle_struct *handle,
const char *link_contents,
struct files_struct *dirfsp,
@@ -1972,7 +1934,6 @@ static struct vfs_fn_pointers vfs_um_fns = {
.lchown_fn = um_lchown,
.chdir_fn = um_chdir,
.ntimes_fn = um_ntimes,
- .symlink_fn = um_symlink,
.symlinkat_fn = um_symlinkat,
.readlinkat_fn = um_readlinkat,
.linkat_fn = um_linkat,