Hi Szaka,
On Thu, 2006-04-27 at 14:05 -0700, Szabolcs Szakacsits wrote:
> Changes by: szaka
>
> Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12208/ntfsprogs
>
> Modified Files:
> ntfsmount.c
> Log Message:
> Workaround for libfuse not being able to find fusermount when mount(8) used
>
>
> Index: ntfsmount.c
> ===================================================================
> RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsmount.c,v
> retrieving revision 1.81
> retrieving revision 1.82
> diff -u -p -r1.81 -r1.82
> --- ntfsmount.c 5 Apr 2006 12:43:07 -0000 1.81
> +++ ntfsmount.c 27 Apr 2006 21:05:38 -0000 1.82
> @@ -1802,6 +1802,11 @@ int main(int argc, char *argv[])
> ntfs_fuse_destroy();
> return 4;
> }
> +
> + /* Libfuse can't always find fusermount, so let's help it. */
> + if (setenv("PATH", ":/bin:/usr/bin:/usr/local/bin", 0) == -1)
> + ntfs_log_perror("WARNING: Failed to set $PATH\n");
> +
> /* Create filesystem. */
> #if defined(FUSE_VERSION) && (FUSE_VERSION >= 25)
> if ((fuse_opt_add_arg(&margs, "") == -1 ||
I'm against such workarounds in ntfsmount, if this is FUSE problem then
it should be fixed there. But, I guess this is user settings problem and
they should fix their PATH variable in /etc/profile or something.
--
Best regards,
Yura
|