Workaround for libfuse not being able to find fusermount when mount(8) used

This commit is contained in:
szaka 2006-04-27 21:05:38 +00:00
parent 4f13e396a4
commit a3ec003be1
2 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,8 @@ xx/xx/2006 - 1.13.1-WIP
attribute completely and index entry (filename) completely and all in
correct order. Essential for hunting bugs in directory operations
code... (Anton)
- ntfsmount: workaround for libfuse not being able to find fusermount
when user uses mount(8).
27/02/2006 - 1.13.0 - Lots and lots and lots of fixes and enhancements.

View File

@ -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 ||