What changed, and why it matters
This commit adds 'quit' as an additional keyword to exit the Monero command-line wallet and console handler, alongside existing 'exit' and 'q' commands. It is a minor user-experience improvement with no security relevance.
No security action needed. Treat as routine UX enhancement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies two files to recognize ‘quit’ as a valid exit command. In console_handler.h, the command comparison now accepts ‘quit’. In simplewallet.cpp, the unknown-command handler treats ‘quit’ the same as ‘exit’ or ‘q’ for backward compatibility. No logic, authentication, cryptography, network, or input-validation behavior changes in a security-relevant way.
Changed components
contrib/epee/include/console_handler.hsrc/simplewallet/simplewallet.cppInspect captured patch +2 / −2
### contrib/epee/include/console_handler.h
@@ -404,7 +404,7 @@ namespace epee
{
continue;
}
- else if(0 == command.compare("exit") || 0 == command.compare("q"))
+ else if(0 == command.compare("exit") || 0 == command.compare("quit") || 0 == command.compare("q"))
{
continue_handle = false;
}
### src/simplewallet/simplewallet.cpp
@@ -2239,7 +2239,7 @@ bool simple_wallet::clear(const std::vector<std::string> &args)
bool simple_wallet::on_unknown_command(const std::vector<std::string> &args)
{
- if (args[0] == "exit" || args[0] == "q") // backward compat
+ if (args[0] == "exit" || args[0] == "quit" || args[0] == "q") // backward compat
return false;
fail_msg_writer() << boost::format(tr("Unknown command '%s', try 'help'")) % args.front();
return true;Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.