summaryrefslogtreecommitdiffstats
path: root/src/fuse/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuse/main.c')
-rw-r--r--src/fuse/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fuse/main.c b/src/fuse/main.c
index 8963e6d..f4260c0 100644
--- a/src/fuse/main.c
+++ b/src/fuse/main.c
@@ -402,6 +402,12 @@ int main( int argc, char *argv[] )
printUsage( argv[0], EXIT_FAILURE );
}
+ /* abort if sticky mode is set and image will not be opened */
+ if ( !learnNewServers && image_Name == NULL ) {
+ logadd( LOG_ERROR, "sticky mode can only be set if image will be opened.\n" );
+ printUsage( argv[0], EXIT_FAILURE );
+ }
+
if ( server_address == NULL || image_Name == NULL ) {
printUsage( argv[0], EXIT_FAILURE );
}