From a3ec003be11445c6fde2a75a69dcd55399e486da Mon Sep 17 00:00:00 2001 From: szaka Date: Thu, 27 Apr 2006 21:05:38 +0000 Subject: [PATCH] Workaround for libfuse not being able to find fusermount when mount(8) used --- ChangeLog | 2 ++ ntfsprogs/ntfsmount.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index eb1b2f5c..033cbf61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/ntfsprogs/ntfsmount.c b/ntfsprogs/ntfsmount.c index 0018b103..3ba3d194 100644 --- a/ntfsprogs/ntfsmount.c +++ b/ntfsprogs/ntfsmount.c @@ -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 ||