From 34c3ff1cd455a0e9e75148a9fc1d96f8b28e3221 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 30 Jul 2020 12:00:11 +0200 Subject: [SERVER] FUSE: Fix arguments to fuse --- src/server/fuse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/server/fuse.c') diff --git a/src/server/fuse.c b/src/server/fuse.c index 18c0cdf..48e3e5e 100644 --- a/src/server/fuse.c +++ b/src/server/fuse.c @@ -543,11 +543,12 @@ bool dfuse_init(const char *opts, const char *dir) mutex_init( &dirLock, LOCK_FUSE_DIR ); clock_gettime( CLOCK_REALTIME, &startupTime ); struct fuse_args args = FUSE_ARGS_INIT( 0, NULL ); + fuse_opt_add_arg( &args, "dnbd3fs" ); // argv[0] if ( opts != NULL ) { fuse_opt_add_arg( &args, opts ); } fuse_opt_add_arg( &args, "-odefault_permissions" ); - fuse_opt_add_arg( &args, dir ); + fuse_opt_add_arg( &args, dir ); // last param is mount point // if ( fuse_parse_cmdline( &args, &fuseMountPoint, NULL, NULL ) == -1 ) { logadd( LOG_ERROR, "FUSE: Error parsing command line" ); -- cgit v1.2.3-55-g7522