]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_media_harmony. Remove readlink_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Thu, 22 Aug 2019 21:49:08 +0000 (14:49 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 23 Aug 2019 18:49:37 +0000 (18:49 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_media_harmony.c

index 55b62a470e49007bd0391fc968559d46ae2e7d37..56e2e4d83809f11b62e9e87967a94e1d9cf19a28 100644 (file)
@@ -1750,37 +1750,6 @@ out:
        return status;
 }
 
-/*
- * 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
@@ -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,