mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 20:36:38 -05:00
Uses pathcmp() where appropriate instead of fnmatch().
This commit is contained in:
parent
2cc948a50c
commit
a84bd62ee6
3 changed files with 7 additions and 6 deletions
4
util.c
4
util.c
|
|
@ -660,8 +660,12 @@ int pathcmp(const char* a, const char* b)
|
|||
#ifdef _WIN32
|
||||
char ai[PATH_MAX];
|
||||
char bi[PATH_MAX];
|
||||
|
||||
/* import to convert \ to / */
|
||||
pathimport(ai, sizeof(ai), a);
|
||||
pathimport(bi, sizeof(bi), b);
|
||||
|
||||
/* case insensitive compare in Windows */
|
||||
return stricmp(ai, bi);
|
||||
#else
|
||||
return strcmp(a, b);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue