8295753: (fs) UnixPath::toRealPath does not return correct case when links not followed

Reviewed-by: alanb
This commit is contained in:
Brian Burkhalter 2022-11-04 17:32:32 +00:00
parent 82f9819eac
commit 5b7e70645b
4 changed files with 147 additions and 22 deletions

View file

@ -52,6 +52,10 @@ class MacOSXFileSystem extends BsdFileSystem {
super(provider, dir);
}
boolean isCaseInsensitiveAndPreserving() {
return true;
}
// match in unicode canon_eq
Pattern compilePathMatchPattern(String expr) {
return Pattern.compile(expr, Pattern.CANON_EQ) ;