Commit 276ef36d by Paweł Wegner

fuse: check for missing mountpoint.

parent 682c7da1
......@@ -130,6 +130,10 @@ std::string default_home_directory() {
template <class Backend>
int fuse_run(fuse_args *args, fuse_cmdline_opts *opts, Json::Value &json) {
if (!opts->mountpoint) {
std::cerr << "missing mountpoint\n";
return 1;
auto ctx = new IFileSystem *;
Backend fuse(args, opts->mountpoint, ctx);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment