Open E3V3A opened 6 years ago
Main problem seem to be around here:
int matches(struct pathnames *paths, char *name, struct pathnames **new)
{
int i, n;
if(paths == NULL) {
*new = NULL;
return TRUE;
}
*new = init_subdir();
for(n = 0; n < paths->count; n++) {
struct pathname *path = paths->path[n];
for(i = 0; i < path->names; i++) {
int match = use_regex ?
regexec(path->name[i].preg, name, (size_t) 0,
NULL, 0) == 0 : fnmatch(path->name[i].name,
name, FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) ==
0;
if(match && path->name[i].paths == NULL)
/*
* match on a leaf component, any subdirectories
* will implicitly match, therefore return an
* empty new search set
*/
goto empty_set;
...
Is related to #15 and (probably?) need another patch: here Would be great if you could include that in your own patch...
Ok, looking at various places how to patch this up...and there are a lot! After first patching with included script, then:
FNM_EXTMATCH
as in #15error: ‘CTL_HW’ undeclared
BYTE_ORDER
issues<sys/sysctl.h>
in CygwinI posted the patches here:
Using:
# (1) diff --strip-trailing-cr -NBbaur squashfs-tools_orig/ squashfs-tools/ >cygwin_sasquatch_43.patch
# (2) diff --strip-trailing-cr -Bbaur squashfs-tools_orig/ squashfs-tools/ >cygwin_sasquatch_43_b.patch
@devttys0 Just to clarify, #25 fixes this issue. Please merge and close.
Any ideas?