summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_media_harmony.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-08-22 14:49:08 -0700
committerJeremy Allison <jra@samba.org>2019-08-23 18:49:37 +0000
commit65deb57c01d7649920654b7906c40d0a6c26ec40 (patch)
treea595b786c10d21accc5bfe1d08e291f414083224 /source3/modules/vfs_media_harmony.c
parentf7f2572a23324fdcc6aa9209332a1af995421465 (diff)
downloadsamba-65deb57c01d7649920654b7906c40d0a6c26ec40.tar.gz
s3: VFS: vfs_media_harmony. Remove readlink_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source3/modules/vfs_media_harmony.c')
-rw-r--r--source3/modules/vfs_media_harmony.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c
index 55b62a470e4..56e2e4d8380 100644
--- a/source3/modules/vfs_media_harmony.c
+++ b/source3/modules/vfs_media_harmony.c
@@ -1754,37 +1754,6 @@ out:
* Success: return byte count
* Failure: set errno, return -1
*/
-static int mh_readlink(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- char *buf,
- size_t bufsiz)
-{
- int status;
- struct smb_filename *clientFname = NULL;
-
- DEBUG(MH_INFO_DEBUG, ("Entering mh_readlink\n"));
- if (!is_in_media_files(smb_fname->base_name)) {
- status = SMB_VFS_NEXT_READLINK(handle, smb_fname, buf, bufsiz);
- goto out;
- }
-
- if ((status = alloc_get_client_smb_fname(handle, talloc_tos(),
- smb_fname,
- &clientFname))) {
- goto err;
- }
-
- status = SMB_VFS_NEXT_READLINK(handle, clientFname, buf, bufsiz);
-err:
- TALLOC_FREE(clientFname);
-out:
- return status;
-}
-
-/*
- * Success: return byte count
- * Failure: set errno, return -1
- */
static int mh_readlinkat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct smb_filename *smb_fname,
@@ -2363,7 +2332,6 @@ static struct vfs_fn_pointers vfs_mh_fns = {
.chdir_fn = mh_chdir,
.ntimes_fn = mh_ntimes,
.symlink_fn = mh_symlink,
- .readlink_fn = mh_readlink,
.readlinkat_fn = mh_readlinkat,
.linkat_fn = mh_linkat,
.mknodat_fn = mh_mknodat,