提交 159e301a 编写于 作者: J jjg

6759775: RegularFileObject.inferBinaryName gives bad result on empty path

Reviewed-by: mcimadamore
上级 4940916d
......@@ -89,6 +89,8 @@ class RegularFileObject extends BaseFileObject {
for (File dir: path) {
//System.err.println("dir: " + dir);
String dPath = dir.getPath();
if (dPath.length() == 0)
dPath = System.getProperty("user.dir");
if (!dPath.endsWith(File.separator))
dPath += File.separator;
if (fPath.regionMatches(true, 0, dPath, 0, dPath.length())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册