Skip to content

Commit 960a39f

Browse files
committed
Fix a case-sensitive issue with ProcessUtil.pathOfCommand(Path path) on Windows
1 parent 018956a commit 960a39f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

process/src/main/java/io/smallrye/common/process/ProcessUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ private static final class Windows {
223223
private static final List<String> pathExt = Stream
224224
.of(getenv("PATHEXT").split(File.pathSeparator))
225225
.filter(s -> !s.isEmpty())
226+
.map(String::toLowerCase)
226227
.toList();
227228
}
228229

0 commit comments

Comments
 (0)