use project name as the first argument to fuse

This commit is contained in:
Francis Banyikwa 2016-06-01 11:55:48 +03:00
parent de6462e548
commit 2cf4a2e087

View File

@ -235,7 +235,7 @@ void Fuse::run(const bf::path &mountdir, const vector<string> &fuseOptions) {
ASSERT(_argv.size() == 0, "Filesystem already started"); ASSERT(_argv.size() == 0, "Filesystem already started");
_argv.reserve(2 + fuseOptions.size()); _argv.reserve(2 + fuseOptions.size());
_argv.push_back(_create_c_string("fspp")); // The first argument is the executable name _argv.push_back(_create_c_string("cryfs")); // The first argument is the executable name
_argv.push_back(_create_c_string(mountdir.native())); // The second argument is the mountdir _argv.push_back(_create_c_string(mountdir.native())); // The second argument is the mountdir
for (const string &option : fuseOptions) { for (const string &option : fuseOptions) {
_argv.push_back(_create_c_string(option)); _argv.push_back(_create_c_string(option));