mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
Workaround for libfuse not being able to find fusermount when mount(8) used
This commit is contained in:
parent
4f13e396a4
commit
a3ec003be1
@ -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.
|
||||
|
||||
|
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user