From: Jeremy Allison Date: Thu, 22 Aug 2019 21:51:17 +0000 (-0700) Subject: s3: VFS: vfs_unityed_media. Remove readlink_fn(). No longer used. X-Git-Tag: tevent-0.10.1~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58bce531fbf2d1d52055520f86d3ac2eabdd1eb0;p=thirdparty%2Fsamba.git s3: VFS: vfs_unityed_media. Remove readlink_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index c6e636ea575..68178691cda 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -1365,34 +1365,6 @@ err: return status; } -static int um_readlink(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - char *buf, - size_t bufsiz) -{ - int status; - struct smb_filename *client_fname = NULL; - - DEBUG(10, ("Entering um_readlink\n")); - - if (!is_in_media_files(smb_fname->base_name)) { - return SMB_VFS_NEXT_READLINK(handle, smb_fname, - buf, bufsiz); - } - - status = alloc_get_client_smb_fname(handle, talloc_tos(), - smb_fname, &client_fname); - if (status != 0) { - goto err; - } - - status = SMB_VFS_NEXT_READLINK(handle, client_fname, buf, bufsiz); - -err: - TALLOC_FREE(client_fname); - return status; -} - static int um_readlinkat(vfs_handle_struct *handle, files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -1960,7 +1932,6 @@ static struct vfs_fn_pointers vfs_um_fns = { .chdir_fn = um_chdir, .ntimes_fn = um_ntimes, .symlink_fn = um_symlink, - .readlink_fn = um_readlink, .readlinkat_fn = um_readlinkat, .linkat_fn = um_linkat, .mknodat_fn = um_mknodat,