mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-12 22:23:49 +01:00
Make --version, --help, etc incremement quiet level, never decrease it
Fixes other case of #9578
This commit is contained in:
parent
3e3b9219ec
commit
6f9584b3fd
6
changes/bug9578
Normal file
6
changes/bug9578
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
o Minor bugfixes:
|
||||||
|
- When a command-line option such as --version or --help that ordinarily
|
||||||
|
implies --hush appears on the command line along with --quiet, obey
|
||||||
|
--quiet. Previously, we obeyed --quiet only if it appeared later on the
|
||||||
|
command line. Fixes bug 9578; bugfix on 0.2.5.1-alpha.
|
||||||
|
|
@ -2355,8 +2355,10 @@ tor_init(int argc, char *argv[])
|
|||||||
if (!strcmp(cl->key, "--version") || !strcmp(cl->key, "--digests") ||
|
if (!strcmp(cl->key, "--version") || !strcmp(cl->key, "--digests") ||
|
||||||
!strcmp(cl->key, "--list-torrc-options") ||
|
!strcmp(cl->key, "--list-torrc-options") ||
|
||||||
!strcmp(cl->key, "--library-versions") ||
|
!strcmp(cl->key, "--library-versions") ||
|
||||||
!strcmp(cl->key, "-h") || !strcmp(cl->key, "--help"))
|
!strcmp(cl->key, "-h") || !strcmp(cl->key, "--help")) {
|
||||||
quiet = 1;
|
if (quiet < 1)
|
||||||
|
quiet = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
config_free_lines(opts);
|
config_free_lines(opts);
|
||||||
config_free_lines(cmdline_opts);
|
config_free_lines(cmdline_opts);
|
||||||
|
Loading…
Reference in New Issue
Block a user