sleuthkit/sleuthkit — pull request #12 by robjoyce (2012-01-20 17:44:43+00:00)
Title: Patches for segment globbing and mingw compilation.

The first commit allows for more than 676 .E01 segments (where .EZZ rolls over to .FAA) by using libewf's globbing function directly. It also moves the EWF segment globbing to ewf.c so that we don't test for .001 and other segment formats when examining an EWF file (and we don't test for .E01, .E02, etc. when looking at a DD image).

It also expands the segment globbing patterns to include .001 (rolling over from .999 to .1000 as FTK does), .01, _001, _01, .000, _000, .00, _00, .aa, .aaa, xaa (from split(1)), and .002.dmgpart (from Apple's hdiutil).

Finally, it changes img_open.c to use split by default when guessing the image type. If the user doesn't want automatic globbing for more segments, they'd need to specify TSK_IMG_TYPE_RAW_SING. I'm not sure if that's the best policy, or if auto-globbing should only be enabled if TSK_IMG_TYPE_RAW_SPLIT. But it's a start.

The second commit fixes compilation on mingw -- it used to work in 3.2.2, but failed in master. (It also makes the threading test compile on Windows. Haven't tested that the test actually passes, but at least it doesn't stop the build now.)