Changeset 1124

Show
Ignore:
Timestamp:
06/07/08 13:08:24 (6 months ago)
Author:
mbr
Message:

minor --locale and copyright date updates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fwknop/trunk/fwknop

    r1121 r1124  
    1919# Version: 1.9.5-pre1 
    2020# 
    21 # Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     21# Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 
    2222# 
    2323# License (GNU Public License): 
     
    17481748    -D, --Destination <IP>     - The IP address of the fwknopd server (the 
    17491749                                 IP want to connect to). 
    1750     -l, --last-cmd             - Run the fwknop with the same command line 
     1750    --last-cmd                 - Run the fwknop with the same command line 
    17511751                                 arguments as in the previous invocation. 
    17521752                                 The args are stored in ~/fwknop.run. 
     
    18681868                                 knock sequence (synonym for -D). 
    18691869    -d, --debug                - Run fwknop in debugging mode. 
     1870    --locale <locale>          - Manually define a locale setting. 
     1871    --no-locale                - Don't set the locale to anything (the 
     1872                                 default is the "C" locale). 
    18701873    -v, --verbose              - Verbose mode. 
    18711874    -V, --Version              - Display version and exit. 
  • fwknop/trunk/fwknop.h

    r1032 r1124  
    1212*  Version: 1.8 
    1313* 
    14 *  Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     14*  Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 
    1515* 
    1616*  License (GNU Public License): 
  • fwknop/trunk/fwknop_serv

    r1121 r1124  
    1818# Version: 1.9.5-pre1 
    1919# 
    20 # Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     20# Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 
    2121# 
    2222# License (GNU Public License): 
  • fwknop/trunk/fwknopd

    r1121 r1124  
    2222# Version: 1.9.5-pre1 
    2323# 
    24 # Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     24# Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 
    2525# 
    2626# License (GNU Public License): 
     
    36673667    ### make Getopts case sensitive 
    36683668    Getopt::Long::Configure('no_ignore_case'); 
    3669     die "[-] Use --help for usage information.\n"  unless (GetOptions( 
     3669    die "[*] Use --help for usage information.\n"  unless (GetOptions( 
    36703670        'config=s'       => \$config_file, 
    36713671        'access-conf=s'  => \$access_conf_file, 
     
    40414041        $cmd .= ' --no-logs' if $test_mode; 
    40424042        $cmd .= " --fw-type $config{'FIREWALL_TYPE'}" if $fw_type; 
     4043        $cmd .= " --locale $cmdline_locale" if $cmdline_locale; 
    40434044 
    40444045        ### always start knoptm 
     
    48844885                                 have the pcap_datali.al file. 
    48854886    -d, --debug                - Run fwknopd in debugging mode. 
     4887    --locale <locale>          - Manually define a locale setting. 
     4888    --no-locale                - Don't set the locale to anything (the 
     4889                                 default is the "C" locale from the LOCALE 
     4890                                 variable in the fwknop.conf file). 
    48864891    -v, --verbose              - Verbose mode. 
    48874892    -V, --Version              - Display version and exit. 
  • fwknop/trunk/install.pl

    r1095 r1124  
    1111# Credits:  (see the CREDITS file) 
    1212# 
    13 # Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     13# Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 
    1414# 
    1515# License (GNU Public License): 
  • fwknop/trunk/knopmd.c

    r798 r1124  
    1313*  Version: 1.8 
    1414* 
    15 *  Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     15*  Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 
    1616* 
    1717*  License (GNU Public License): 
  • fwknop/trunk/knoptm

    r1121 r1124  
    2121# Version: 1.9.5-pre1 
    2222# 
    23 # Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     23# Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 
    2424# 
    2525# License (GNU Public License): 
     
    8080my $zero_ip_re = qr|(?:0\.){3}0|; 
    8181 
    82 my $locale = 'C';  ### default LC_ALL env variable 
     82my $cmdline_locale = ''; 
    8383my $no_locale = 0; 
    8484 
     
    9595    'no-voluntary-exits' => \$no_voluntary_exits, 
    9696    'no-logs'   => \$no_logs, 
    97     'LC_ALL=s'       => \$locale, 
    98     'locale=s'       => \$locale, 
    99     'no-LC_ALL'      => \$no_locale, 
    100     'no-locale'      => \$no_locale, 
     97    'LC_ALL=s'  => \$cmdline_locale, 
     98    'locale=s'  => \$cmdline_locale, 
     99    'no-LC_ALL' => \$no_locale, 
     100    'no-locale' => \$no_locale, 
    101101    'help'      => \$print_help 
    102102)); 
     
    112112&usage(0) if $print_help; 
    113113 
    114 ### set LC_ALL env variable 
    115 $ENV{'LC_ALL'} = $locale unless $no_locale; 
    116  
    117114### set things up, deal with pid's, and import config 
    118115&knoptm_init(); 
     116 
     117&handle_locale(); 
    119118 
    120119print STDERR "[+] Opening $config{'KNOPTM_IP_TIMEOUT_SOCK'} socket, ", 
     
    744743            ALERTING_METHODS FIREWALL_TYPE KNOPTM_SYSLOG_IDENTITY 
    745744            KNOPTM_SYSLOG_FACILITY KNOPTM_SYSLOG_PRIORITY 
    746             ENABLE_VOLUNTARY_EXITS EXIT_INTERVAL FWKNOP_PID_FILE) { 
     745            ENABLE_VOLUNTARY_EXITS EXIT_INTERVAL FWKNOP_PID_FILE 
     746            LOCALE 
     747    ) { 
    747748 
    748749        die "[*] Variable $var is not defined in $config_file" 
     
    832833    close D; 
    833834    $warn_msg = ''; 
     835    return; 
     836} 
     837 
     838sub handle_locale() { 
     839    $config{'LOCALE'} = $cmdline_locale if $cmdline_locale; 
     840 
     841    if ($config{'LOCALE'} ne 'NONE' and not $no_locale) { 
     842        ### set LC_ALL env variable 
     843        $ENV{'LC_ALL'} = $config{'LOCALE'}; 
     844    } 
    834845    return; 
    835846} 
  • fwknop/trunk/knopwatchd.c

    r1119 r1124  
    1616*  Version: 1.9.5-pre1 
    1717* 
    18 *  Copyright (C) 2004-2007 Michael Rash (mbr@cipherdyne.org) 
     18*  Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 
    1919* 
    2020*  License (GNU Public License):