mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
Checks if parity and content options are pointing to the same file.
This commit is contained in:
parent
13596d07ea
commit
31abb8e323
3 changed files with 40 additions and 5 deletions
13
util.c
13
util.c
|
|
@ -640,6 +640,19 @@ void pathslash(char* dst, size_t size)
|
|||
}
|
||||
}
|
||||
|
||||
int pathcmp(const char* a, const char* b)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
char ai[PATH_MAX];
|
||||
char bi[PATH_MAX];
|
||||
pathimport(ai, sizeof(ai), a);
|
||||
pathimport(bi, sizeof(bi), b);
|
||||
return stricmp(ai, bi);
|
||||
#else
|
||||
return strcmp(a, b);
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* mem */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue