From 1c236b8366014fbd1dab42c0ef50996445c57b22 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Thu, 29 Oct 2020 18:36:52 +0100 Subject: [CLIENT] add feature to ignore propagated alternative servers (sticky mode) --- src/fuse/main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fuse') 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 ); } -- cgit v1.2.3-55-g7522