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
.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,