Ticket #15542: 0001-Make-hash-password-imply-hush-to-prevent-unnecessary.patch

File 0001-Make-hash-password-imply-hush-to-prevent-unnecessary.patch, 1.4 KB (added by cypherpunks, 5 years ago)
  • new file changes/ticket15542

    From ad55d6b2f5c5de8116b9ce7bc47e2453a456ad83 Mon Sep 17 00:00:00 2001
    From: cypherpunks <cypherpunks@torproject.org>
    Date: Fri, 10 Apr 2015 16:10:44 +0200
    Subject: [PATCH] Make --hash-password imply --hush to prevent unnecessary
     noise.
    
    ---
     changes/ticket15542 | 3 +++
     src/or/main.c       | 3 ++-
     2 files changed, 5 insertions(+), 1 deletion(-)
     create mode 100644 changes/ticket15542
    
    diff --git a/changes/ticket15542 b/changes/ticket15542
    new file mode 100644
    index 0000000..fcf293e
    - +  
     1  o Minor features (command-line interface):
     2    - Make --hash-password imply --hush to prevent unnecessary noise. Closes
     3      ticket 15542.
  • src/or/main.c

    diff --git a/src/or/main.c b/src/or/main.c
    index a3da148..07d5ba8 100644
    a b tor_init(int argc, char *argv[]) 
    24842484      if (!strcmp(cl->key, "--quiet") ||
    24852485          !strcmp(cl->key, "--dump-config"))
    24862486        quiet = 2;
    2487       /* --version, --digests, and --help imply --hush */
     2487      /* The following options imply --hush */
    24882488      if (!strcmp(cl->key, "--version") || !strcmp(cl->key, "--digests") ||
    24892489          !strcmp(cl->key, "--list-torrc-options") ||
    24902490          !strcmp(cl->key, "--library-versions") ||
     2491          !strcmp(cl->key, "--hash-password") ||
    24912492          !strcmp(cl->key, "-h") || !strcmp(cl->key, "--help")) {
    24922493        if (quiet < 1)
    24932494          quiet = 1;