Changeset 832 for trunk/dll/assoc.c


Ignore:
Timestamp:
Sep 5, 2007, 4:09:22 AM (18 years ago)
Author:
Gregg Young
Message:

Initial implimentation of a more flexible mask matching system to address multiple "." in file names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/assoc.c

    r793 r832  
    361361      }
    362362      else
    363         exclude = FALSE;
    364       didmatch = wildcard((strchr(p, '\\') ||
    365                            strchr(p, ':')) ? datafile : file, p, FALSE);
     363          exclude = FALSE;
     364      if ((*p == '*') &&
     365          !((p[strlen(p) - 1]) == '*'))
     366        didmatch = wildcard((strchr(p, '\\') ||
     367                             strchr(p, ':')) ? datafile : file, p, FALSE);
     368      else
     369        didmatch = wildcard2((strchr(p, '\\') ||
     370                             strchr(p, ':')) ? datafile : file, p, FALSE);
    366371      if (exclude && didmatch)
    367372        didmatch = FALSE;
Note: See TracChangeset for help on using the changeset viewer.