RFR: JDK-8260335: [macos] Running app using relative path causes problems

Alexey Semenyuk asemenyuk at openjdk.java.net
Tue Feb 2 17:12:48 UTC 2021


On Wed, 27 Jan 2021 12:43:40 GMT, Andy Herrick <herrick at 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


More information about the core-libs-dev mailing list