Skip to content

Commit

Permalink
Merge pull request #3687 from dscho/fscache-vs-ignoreCase
Browse files Browse the repository at this point in the history
Teach FSCache about case-sensitive filenames
  • Loading branch information
dscho committed Feb 8, 2022
2 parents 5437f0f + 97d21a9 commit 8e7d166
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compat/win32/fscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "config.h"
#include "../../mem-pool.h"
#include "ntifs.h"
#include "../../dir.h"

static volatile long initialized;
static DWORD dwTlsIndex;
Expand Down Expand Up @@ -101,7 +102,7 @@ static int fsentry_cmp(void *unused_cmp_data,
/* if list parts are equal, compare len and name */
if (fse1->len != fse2->len)
return fse1->len - fse2->len;
return strnicmp(fse1->dirent.d_name, fse2->dirent.d_name, fse1->len);
return fspathncmp(fse1->dirent.d_name, fse2->dirent.d_name, fse1->len);
}

/*
Expand Down

0 comments on commit 8e7d166

Please sign in to comment.