mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
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:
parent
7cd46f95df
commit
3f65ccd949
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user