Skip to content

Commit

Permalink
Exported the translations of Windows paths
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jpandre committed Mar 8, 2020
1 parent 7cd46f9 commit 3f65ccd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions include/ntfs-3g/reparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion include/ntfs-3g/volume.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion libntfs-3g/reparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/lowntfs-3g.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions src/ntfs-3g.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3f65ccd

Please sign in to comment.