Windows filesystems do not differentiate by case, so we shouldn't either.
Reported-by: stephan@srlabs.de
Change-Id: I4d905da3add9b8a3daf349eb1bc830a017cf493d
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1362
Message-Id: <
20251112093911.24196-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34340.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
res = PathCchCanonicalize(config_path, _countof(config_path), fname);
}
- return res == S_OK && wcsncmp(config_path, s->config_dir, wcslen(s->config_dir)) == 0;
+ return res == S_OK && wcsnicmp(config_path, s->config_dir, wcslen(s->config_dir)) == 0;
}