Changeset 1252

Show
Ignore:
Timestamp:
09/28/08 17:51:36 (2 months ago)
Author:
mbr
Message:

minor update to include debuging code in check_command()

Files:

Legend:

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

    r1251 r1252  
    40574057        unless (-x $cmds{$cmd}) { 
    40584058            my $found = 0; 
     4059            if ($debug) { 
     4060                print STDERR "[-] $cmd not located/executable at $cmds{$cmd}\n"; 
     4061            } 
    40594062            PATH: for my $dir (@path) { 
    40604063                if (-x "${dir}/${cmd}") { 
     
    40644067                } 
    40654068            } 
    4066             unless ($found) { 
     4069            if ($found) { 
     4070                if ($debug) { 
     4071                    print STDERR "    Found $cmd at $cmds{$cmd}\n"; 
     4072                } 
     4073            } else { 
    40674074                die "[*] Could not find $cmd anywhere. Please edit the\n", 
    40684075                    "config section in $config_file to include the path to\n",