diff --git a/src/XrdCl/XrdClFS.cc b/src/XrdCl/XrdClFS.cc index 4c6626c08dc..732186c9de7 100644 --- a/src/XrdCl/XrdClFS.cc +++ b/src/XrdCl/XrdClFS.cc @@ -1670,7 +1670,7 @@ int ExecuteInteractive( const URL &url ) { char *linebuf = 0; linebuf = readline( BuildPrompt( ex->GetEnv(), url ).c_str() ); - if( !linebuf || !strcmp( linebuf, "exit" ) || !strcmp( linebuf, "quit" ) ) + if( !linebuf || !strncmp( linebuf, "exit", 4 ) || !strncmp( linebuf, "quit", 4 ) ) { std::cout << "Goodbye." << std::endl << std::endl; break;