From 08ad3b4977da18886f60e33df4e3fa7fcce416ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 23 Jan 2012 17:56:15 +0100 Subject: [PATCH] Mounted with an absolute mount point on OpenIndiana OpenIndiana requires that the mount points be defined on a full absolute patch. Give it what it needs. --- src/lowntfs-3g.c | 4 ++++ src/ntfs-3g.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/lowntfs-3g.c b/src/lowntfs-3g.c index 8898ea4b..c22badb7 100644 --- a/src/lowntfs-3g.c +++ b/src/lowntfs-3g.c @@ -3826,6 +3826,10 @@ int main(int argc, char *argv[]) PATH_MAX - strlen(opts.mnt_point) - 1)) { strcat(ctx->abs_mnt_point, "/"); strcat(ctx->abs_mnt_point, opts.mnt_point); +#if defined(__sun) && defined (__SVR4) + /* Solaris also wants the absolute mount point */ + opts.mnt_point = ctx->abs_mnt_point; +#endif /* defined(__sun) && defined (__SVR4) */ } } } diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 7eb60ca5..6c827180 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -3681,6 +3681,10 @@ int main(int argc, char *argv[]) PATH_MAX - strlen(opts.mnt_point) - 1)) { strcat(ctx->abs_mnt_point, "/"); strcat(ctx->abs_mnt_point, opts.mnt_point); +#if defined(__sun) && defined (__SVR4) + /* Solaris also wants the absolute mount point */ + opts.mnt_point = ctx->abs_mnt_point; +#endif /* defined(__sun) && defined (__SVR4) */ } } }