Exported the translations of Windows paths

The translations of Windows paths designed for translating Windows symlinks
and mount points may also be used in plugins for translation execlinks,
so make them available.
This commit is contained in:
Jean-Pierre André 2020-03-08 10:17:21 +01:00
parent 7cd46f95df
commit 3f65ccd949
5 changed files with 7 additions and 2 deletions

View File

@ -30,6 +30,9 @@ BOOL ntfs_possible_symlink(ntfs_inode *ni);
int ntfs_get_ntfs_reparse_data(ntfs_inode *ni, char *value, size_t size);
char *ntfs_get_abslink(ntfs_volume *vol, ntfschar *junction,
int count, const char *mnt_point, BOOL isdir);
REPARSE_POINT *ntfs_get_reparse_point(ntfs_inode *ni);
int ntfs_set_ntfs_reparse_data(ntfs_inode *ni, const char *value,

View File

@ -274,7 +274,7 @@ struct _ntfs_volume {
#if CACHE_LEGACY_SIZE
struct CACHE_HEADER *legacy_cache;
#endif
const char *abs_mnt_point; /* Mount point */
};
extern const char *ntfs_home;

View File

@ -604,7 +604,7 @@ static char *ntfs_get_fulllink(ntfs_volume *vol, ntfschar *junction,
* or NULL if there were some problem, as described by errno
*/
static char *ntfs_get_abslink(ntfs_volume *vol, ntfschar *junction,
char *ntfs_get_abslink(ntfs_volume *vol, ntfschar *junction,
int count, const char *mnt_point, BOOL isdir)
{
char *target;

View File

@ -4516,6 +4516,7 @@ int main(int argc, char *argv[])
if (ctx->blkdev && set_fuseblk_options(&parsed_options))
goto err_out;
ctx->vol->abs_mnt_point = ctx->abs_mnt_point;
ctx->security.vol = ctx->vol;
ctx->vol->secure_flags = ctx->secure_flags;
#ifdef HAVE_SETXATTR /* extended attributes interface required */

View File

@ -4257,6 +4257,7 @@ int main(int argc, char *argv[])
if (ctx->blkdev && set_fuseblk_options(&parsed_options))
goto err_out;
ctx->vol->abs_mnt_point = ctx->abs_mnt_point;
ctx->security.vol = ctx->vol;
ctx->vol->secure_flags = ctx->secure_flags;
#ifdef HAVE_SETXATTR /* extended attributes interface required */