Changeset 34

Show
Ignore:
Timestamp:
11/29/06 03:58:20 (2 years ago)
Author:
kindlund
Message:

updated initRegistry function to touch any added files, so that initFilesystem can do it's job properly

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/bug/42/lib/HoneyClient/Agent/Integrity.pm

    r33 r34  
    816816    if (-f $foundfile) { 
    817817        $g_ex_hash->{$foundfile} = 1; 
    818       print "\t _recursive_exclude()d $foundfile\n"; 
     818#     print "\t _recursive_exclude()d $foundfile\n"; 
    819819    } 
    820820} 
     
    882882        print "regedit /a \"$self->{clean_reg}$var\" \"$key_to_check\" \n"; 
    883883        system("regedit.exe /a \"$self->{clean_reg}$var\" \"$key_to_check\""); 
     884        # XXX: We touch the current and differences files first, even though they are empty. 
     885        # This is to make sure that these files get properly excluded during filesystem initialization, 
     886        # since they would not have existed otherwise, until after a registry check occurs. 
     887        system("touch \"$self->{current_reg}$var\""); 
     888        system("touch \"$self->{diffs}$var\""); 
    884889        $var++; 
    885890    }