On Wed, 27 Jan 2021 12:43:40 GMT, Andy Herrick <herr...@openjdk.org> wrote:

> Fixing FileUtils.dirname() to skip over "/.".

Changes requested by asemenyuk (Committer).

src/jdk.jpackage/share/native/common/FileUtils.cpp line 57:

> 55: tstring dirname(const tstring &path) {
> 56:     tstring::size_type pos;
> 57:     if (tstrings::endsWith(path, _T("/."))) {

I'd add `|| tstrings::endsWith(path, _T("\."))` to cover similar case for 
Windows paths

-------------

PR: https://git.openjdk.java.net/jdk/pull/2260

Reply via email to