resolved issue 2950986 to allow HFS 0-size directories

This commit is contained in:
Brian Carrier 2010-03-23 01:53:35 +00:00
parent 3e3da4d449
commit fb5db6b498
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,6 @@
--------------------------- Version 2.24 --------------------------------
3/22/10: Bug Fix: resolved issue 2950986 to support HFS directories.
--------------------------- Version 2.23 --------------------------------
2/12/10: bug fix: resolved issue 2950693 where previous searches
were not shown if they used quotes.

2
configure vendored
View File

@ -291,7 +291,9 @@ echo " Version $ver found";
if (test "$ver" '<' "$minver") then
echo "Your version of The Sleuth Kit is not current enough - $minver is needed";
if (test "$ver" '>' "0.0.0") then
exit 1;
fi;
elif (test "$ver" '<' "$curtskver") then
echo '';
echo "*** NOTE: A more recent version ($curtskver) of The Sleuth Kit Exists ***"

View File

@ -970,10 +970,10 @@ EOF3
. " <td>$sp</td>\n";
# for valid files and directories make a link
# Special rule for $OrphanFiles directory, which has a size of 0
# Special rule for $OrphanFiles directory and HFS directories, which have a size of 0
if (
($meta_int[$i] >= $Fs::first_meta{$ftype})
&& (($size[$i] > 0) || ($name[$i] =~ /^\$Orphan/))
&& (($size[$i] > 0) || (($name[$i] =~ /^\$Orphan/) && ($itype[$i] eq 'd')) || (($ftype =~ /hfs/) && ($itype[$i] eq 'd')))
&& ( ($itype[$i] eq 'r')
|| ($itype[$i] eq 'd')
|| ($itype[$i] eq 'v'))