mirror of
https://github.com/transmission/transmission.git
synced 2026-02-15 07:26:49 +00:00
fix: crash on invalid command-line value for --cache / -e arg (#8163)
* fix: crash on invalid command-line value for --cache arg
* Update utils/remote.cc
Co-authored-by: Yat Ho <lagoho7@gmail.com>
---------
Co-authored-by: Yat Ho <lagoho7@gmail.com>
(cherry picked from commit f200bedd57)
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -2885,6 +2885,11 @@ int process_args(char const* rpcurl, int argc, char const* const* argv, RemoteCo
|
||||
{
|
||||
args.insert_or_assign(TR_KEY_cache_size_mib, *val);
|
||||
}
|
||||
else
|
||||
{
|
||||
fmt::print(stderr, "Argument to '-e'/'--cache' should be an integer");
|
||||
status |= EXIT_FAILURE;
|
||||
}
|
||||
break;
|
||||
|
||||
case 910:
|
||||
|
||||
Reference in New Issue
Block a user