This is an automated email from the git hooks/post-receive script.
nickm pushed a change to branch main in repository tor.
from 834745929a fix easy typos new 6c1aad13e2 Fix `check-docs` to avoid false-positives on missing anchors. new 95080794eb Fix the name of AuthDirMiddleOnly in the manpage. new 1ecd7c5d43 Merge remote-tracking branch 'tor-gitlab/mr/590' new 0eb21427c9 Don't add redundant quotes with escaped() in log messages. new 0bd2065062 Merge remote-tracking branch 'tor-gitlab/mr/591' new 0dc9561f21 Add a missing "not" to a message. new 3cee70e87d Merge remote-tracking branch 'tor-gitlab/mr/592'
The 7 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
Summary of changes: changes/bug40619 | 3 +++ changes/log-quotes | 3 +++ doc/man/tor.1.txt | 4 ++-- scripts/maint/checkOptionDocs.pl.in | 9 ++++++++- src/feature/dirauth/process_descs.c | 2 +- src/feature/nodelist/microdesc.c | 2 +- src/feature/relay/dns.c | 4 ++-- 7 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 changes/bug40619 create mode 100644 changes/log-quotes
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main in repository tor.
commit 6c1aad13e22d558b80463682f005d04bfdb2d162 Author: Nick Mathewson nickm@torproject.org AuthorDate: Thu Jun 16 11:50:59 2022 -0400
Fix `check-docs` to avoid false-positives on missing anchors.
Also add an anchor for the second ClientTranportPlugin instance.
See #40339.
This doesn't need a changes file because it isn't user-facing. --- doc/man/tor.1.txt | 2 +- scripts/maint/checkOptionDocs.pl.in | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/doc/man/tor.1.txt b/doc/man/tor.1.txt index 6a4afc0bbd..065324c104 100644 --- a/doc/man/tor.1.txt +++ b/doc/man/tor.1.txt @@ -335,7 +335,7 @@ forward slash (/) in the configuration file and on the command line. to mess with it. (Default: -1)
[[ClientTransportPlugin]] **ClientTransportPlugin** __transport__ socks4|socks5 __IP__:__PORT__:: -**ClientTransportPlugin** __transport__ exec __path-to-binary__ [options]:: +[[ClientTransportPlugin-2]] **ClientTransportPlugin** __transport__ exec __path-to-binary__ [options]:: In its first form, when set along with a corresponding Bridge line, the Tor client forwards its traffic to a SOCKS-speaking proxy on "IP:PORT". (IPv4 addresses should written as-is; IPv6 addresses should be wrapped in diff --git a/scripts/maint/checkOptionDocs.pl.in b/scripts/maint/checkOptionDocs.pl.in index 2d4a7884f5..d2c2a838d6 100644 --- a/scripts/maint/checkOptionDocs.pl.in +++ b/scripts/maint/checkOptionDocs.pl.in @@ -41,9 +41,16 @@ loadTorrc("@abs_top_srcdir@/src/config/torrc.sample.in", %torrcSampleOptions); my $considerNextLine = 0; open(F, "@abs_top_srcdir@/doc/man/tor.1.txt") or die; while (<F>) { - if (m!^(?:[[([A-za-z0-9_]+)]] *)?**([A-Za-z0-9_]+)**!) { + if (m!^(?:[[([A-za-z0-9_]+)]] *)?**([A-Za-z0-9_]+)**! && $considerNextLine) { $manPageOptions{$2} = 1; print "Missing an anchor: $2\n" unless (defined $1 or $2 eq 'tor'); + $considerNextLine = 1; + } elsif (m!^\s*$! or + m!^\s*+\s*$! or + m!^\s*//!) { + $considerNextLine = 1; + } else { + $considerNextLine = 0; } } close F;
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main in repository tor.
commit 95080794eb4a76e9e42f99dbdd54f94de361ac84 Author: Nick Mathewson nickm@torproject.org AuthorDate: Thu Jun 16 11:53:26 2022 -0400
Fix the name of AuthDirMiddleOnly in the manpage. --- doc/man/tor.1.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/man/tor.1.txt b/doc/man/tor.1.txt index 065324c104..59a9ddc714 100644 --- a/doc/man/tor.1.txt +++ b/doc/man/tor.1.txt @@ -3112,7 +3112,7 @@ on the public Tor network. is the same as for exit policies, except that you don't need to say "accept" or "reject", and ports are not needed.)
-[[AuthDirMiddleOnly]] **AuthMiddleOnly** __AddressPattern...__:: +[[AuthDirMiddleOnly]] **AuthDirMiddleOnly** __AddressPattern...__:: Authoritative directories only. A set of address patterns for servers that will be listed as middle-only in any network status document this authority publishes, if **AuthDirListMiddleOnly** is set. +
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main in repository tor.
commit 0eb21427c95da6d67778080d3da0b858e077104a Author: Nick Mathewson nickm@torproject.org AuthorDate: Thu Jun 16 14:35:38 2022 -0400
Don't add redundant quotes with escaped() in log messages.
The escaped() function and its kin already wrap their output in quotes: there's no reason to do so twice.
I am _NOT_ making a corresponding change in calls that make the same mistake in controller-related functions, however, due to the risk of a compatibility break. :(
Closes #22723. --- changes/log-quotes | 3 +++ src/feature/dirauth/process_descs.c | 2 +- src/feature/relay/dns.c | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/changes/log-quotes b/changes/log-quotes new file mode 100644 index 0000000000..7c9308eb44 --- /dev/null +++ b/changes/log-quotes @@ -0,0 +1,3 @@ + o Minor bugfixes (logging): + - Avoid ""double-quoting"" strings in several log messages. + Fixes bug 22723; bugfix on 0.1.2.2-alpha. diff --git a/src/feature/dirauth/process_descs.c b/src/feature/dirauth/process_descs.c index 7d61247e23..6a9cc5e95f 100644 --- a/src/feature/dirauth/process_descs.c +++ b/src/feature/dirauth/process_descs.c @@ -110,7 +110,7 @@ add_rsa_fingerprint_to_dir(const char *fp, authdir_config_t *list, tor_strstrip(fingerprint, " "); if (base16_decode(d, DIGEST_LEN, fingerprint, strlen(fingerprint)) != DIGEST_LEN) { - log_warn(LD_DIRSERV, "Couldn't decode fingerprint "%s"", + log_warn(LD_DIRSERV, "Couldn't decode fingerprint %s", escaped(fp)); tor_free(fingerprint); return -1; diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c index 4ae4a8e4b9..be226f4815 100644 --- a/src/feature/relay/dns.c +++ b/src/feature/relay/dns.c @@ -768,11 +768,11 @@ dns_resolve_impl,(edge_connection_t *exitconn, int is_resolve,
if (!is_reverse || !is_resolve) { if (!is_reverse) - log_info(LD_EXIT, "Bad .in-addr.arpa address "%s"; sending error.", + log_info(LD_EXIT, "Bad .in-addr.arpa address %s; sending error.", escaped_safe_str(exitconn->base_.address)); else if (!is_resolve) log_info(LD_EXIT, - "Attempt to connect to a .in-addr.arpa address "%s"; " + "Attempt to connect to a .in-addr.arpa address %s; " "sending error.", escaped_safe_str(exitconn->base_.address));
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main in repository tor.
commit 0dc9561f21521df07ea587be51321c7cc6e06341 Author: Nick Mathewson nickm@torproject.org AuthorDate: Fri Jun 17 12:00:09 2022 -0400
Add a missing "not" to a message.
Closes #40619.
Bugfix on 0.2.5.4-alpha. --- changes/bug40619 | 3 +++ src/feature/nodelist/microdesc.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/changes/bug40619 b/changes/bug40619 new file mode 100644 index 0000000000..e49c2b5260 --- /dev/null +++ b/changes/bug40619 @@ -0,0 +1,3 @@ + o Minor bugfixes (logging): + - Correct a log message when cleaning microdescriptors. + Fixes bug 40619; bugfix on 0.2.5.4-alpha. diff --git a/src/feature/nodelist/microdesc.c b/src/feature/nodelist/microdesc.c index a95d535dc0..9e5f0bb9a4 100644 --- a/src/feature/nodelist/microdesc.c +++ b/src/feature/nodelist/microdesc.c @@ -626,7 +626,7 @@ microdesc_cache_clean(microdesc_cache_t *cache, time_t cutoff, int force) (*mdp)->digest, DIGEST256_LEN)) { rs_match = "Microdesc digest in RS matches"; } else { - rs_match = "Microdesc digest in RS does match"; + rs_match = "Microdesc digest in RS does not match"; } if (ns) { /* This should be impossible, but let's see! */
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main in repository tor.
commit 1ecd7c5d437a2285a5b3d05988645f3f74e78547 Merge: 834745929a 95080794eb Author: Nick Mathewson nickm@torproject.org AuthorDate: Thu Jul 21 15:19:20 2022 -0400
Merge remote-tracking branch 'tor-gitlab/mr/590'
doc/man/tor.1.txt | 4 ++-- scripts/maint/checkOptionDocs.pl.in | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-)
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main in repository tor.
commit 0bd206506244eab695af926d551e5a051a476f6a Merge: 1ecd7c5d43 0eb21427c9 Author: Nick Mathewson nickm@torproject.org AuthorDate: Thu Jul 21 15:19:24 2022 -0400
Merge remote-tracking branch 'tor-gitlab/mr/591'
changes/log-quotes | 3 +++ src/feature/dirauth/process_descs.c | 2 +- src/feature/relay/dns.c | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-)
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main in repository tor.
commit 3cee70e87d46369ffb7f1c1da78c5f32add01e13 Merge: 0bd2065062 0dc9561f21 Author: Nick Mathewson nickm@torproject.org AuthorDate: Thu Jul 21 15:19:28 2022 -0400
Merge remote-tracking branch 'tor-gitlab/mr/592'
changes/bug40619 | 3 +++ src/feature/nodelist/microdesc.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
tor-commits@lists.torproject.org