Ticket #7768: 0001-Use-option-name-test-in-tor-fw-helper.patch

File 0001-Use-option-name-test-in-tor-fw-helper.patch, 1.6 KB (added by dcf, 7 years ago)
  • changes/bug7768

    From fb2e8e17092d9b964a83f276edfb3e244b057447 Mon Sep 17 00:00:00 2001
    From: David Fifield <david@bamsoftware.com>
    Date: Wed, 13 Mar 2013 00:43:21 -0700
    Subject: [PATCH] Use option name --test in tor-fw-helper.
    
    It was previously --Test in the help output and --test-commandline in
    the getopt call. The man page already had --test.
    ---
     changes/bug7768                         |    4 ++--
     src/tools/tor-fw-helper/tor-fw-helper.c |    4 ++--
     2 files changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/changes/bug7768 b/changes/bug7768
    index f523b5b..e3f9600 100644
    a b  
    11  o Documentation fixes:
    2     - Update tor-fw-helper.1.txt to describe its options with their
    3       correct names. Fixes bug 7768.
     2    - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
     3      names match. Fixes bug 7768.
  • src/tools/tor-fw-helper/tor-fw-helper.c

    diff --git a/src/tools/tor-fw-helper/tor-fw-helper.c b/src/tools/tor-fw-helper/tor-fw-helper.c
    index d92445e..54108f7 100644
    a b usage(void) 
    9797{
    9898  fprintf(stderr, "tor-fw-helper usage:\n"
    9999          " [-h|--help]\n"
    100           " [-T|--Test]\n"
     100          " [-T|--test]\n"
    101101          " [-v|--verbose]\n"
    102102          " [-g|--fetch-public-ip]\n"
    103103          " [-p|--forward-port ([<external port>]:<internal port>])\n");
    main(int argc, char **argv) 
    388388        {"help", 0, 0, 'h'},
    389389        {"port", 1, 0, 'p'},
    390390        {"fetch-public-ip", 0, 0, 'g'},
    391         {"test-commandline", 0, 0, 'T'},
     391        {"test", 0, 0, 'T'},
    392392        {0, 0, 0, 0}
    393393      };
    394394