Skip to content

Commit e40ea21

Browse files
committed
Expanded comment
1 parent 132881a commit e40ea21

File tree

1 file changed

+3
-1
lines changed
  • libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/entitlements

1 file changed

+3
-1
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/entitlements/FilesEntitlement.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ static FileData ofRelativePathSetting(String setting, BaseDir baseDir, Mode mode
6464
}
6565

6666
/**
67-
* Tests if a path is absolute or relative, taking into consideration both Unix and Windows conventions
67+
* Tests if a path is absolute or relative, taking into consideration both Unix and Windows conventions.
68+
* Note that this leads to a conflict, resolved in favor of Unix rules: `/foo` can be either a Unix absolute path, or a Windows
69+
* relative path with "wrong" directory separator (using non-canonical slash in Windows).
6870
*/
6971
static boolean isAbsolutePath(String path) {
7072
if (path.isEmpty()) {

0 commit comments

Comments
 (0)