Changeset 868

Show
Ignore:
Timestamp:
12/09/07 11:58:23 (1 year ago)
Author:
mbr
Message:

minor save file variable bugfix

Files:

Legend:

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

    r867 r868  
    13271327 
    13281328sub run_last_host_cmdline() { 
    1329     my $hosts_file = "$homedir/.fwknop.hosts"; 
    13301329 
    13311330    my $found_file = 0; 
    13321331    my $found_host = 0; 
    1333     for my $file ("$homedir/.fwknop.save", "$homedir/.fwknop.hosts") { 
    1334         next unless -e $file; 
     1332    for my $save_file ("$homedir/.fwknop.save", "$homedir/.fwknop.hosts") { 
     1333        next unless -e $save_file; 
    13351334        $found_file = 1; 
    13361335 
    13371336        my $arg_line = ''; 
    1338         open H, "< $hosts_file" or die "[*] Could not open $hosts_file: $!"; 
     1337        open H, "< $save_file" or die "[*] Could not open $save_file: $!"; 
    13391338        while (<H>) { 
    13401339            if (/-(k|D)\S*\s+$run_last_host/) {