# HG changeset patch # User Matt Johnston # Date 1373294636 -28800 # Node ID 028fa77f952fbc9d19ea91f7f86dbc9120f50aa2 # Parent c936abfa99356363cc9a495bcb5852620c0486e2# Parent 5ba19d00da08e40fbeb3931990132e39054b44d3 merge diff -r 5ba19d00da08 -r 028fa77f952f cli-runopts.c --- a/cli-runopts.c Sun May 26 18:43:00 2013 +0800 +++ b/cli-runopts.c Mon Jul 08 22:43:56 2013 +0800 @@ -383,6 +383,13 @@ exit(EXIT_FAILURE); } +#ifdef ENABLE_CLI_PROXYCMD + if (cli_opts.proxycmd) { + /* To match the common path of m_freeing it */ + cli_opts.proxycmd = m_strdup(cli_opts.proxycmd); + } +#endif + if (cli_opts.remoteport == NULL) { cli_opts.remoteport = "22"; } diff -r 5ba19d00da08 -r 028fa77f952f random.c --- a/random.c Sun May 26 18:43:00 2013 +0800 +++ b/random.c Mon Jul 08 22:43:56 2013 +0800 @@ -77,7 +77,7 @@ while (len == 0 || readcount < len) { int readlen, wantread; - unsigned char readbuf[2048]; + unsigned char readbuf[4096]; if (!already_blocked) { int ret; @@ -208,12 +208,13 @@ process_file(&hs, "/proc/loadavg", 0, 0); process_file(&hs, "/proc/sys/kernel/random/entropy_avail", 0, 0); - /* Mostly network visible but useful in some situations */ - process_file(&hs, "/proc/net/netstat", 0, 0); - process_file(&hs, "/proc/net/dev", 0, 0); - process_file(&hs, "/proc/net/tcp", 0, 0); + /* Mostly network visible but useful in some situations. + * Limit size to avoid slowdowns on systems with lots of routes */ + process_file(&hs, "/proc/net/netstat", 4096, 0); + process_file(&hs, "/proc/net/dev", 4096, 0); + process_file(&hs, "/proc/net/tcp", 4096, 0); /* Also includes interface lo */ - process_file(&hs, "/proc/net/rt_cache", 0, 0); + process_file(&hs, "/proc/net/rt_cache", 4096, 0); process_file(&hs, "/proc/vmstat", 0, 0); #endif