From: Jeremy Allison Date: Thu, 22 Aug 2019 21:49:08 +0000 (-0700) Subject: s3: VFS: vfs_media_harmony. Remove readlink_fn(). No longer used. X-Git-Tag: tevent-0.10.1~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65deb57c01d7649920654b7906c40d0a6c26ec40;p=thirdparty%2Fsamba.git s3: VFS: vfs_media_harmony. Remove readlink_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- 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 @@ -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,