This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 04f3694 Cleanups
04f3694 is described below
commit 04f3694ef13a36830e160c426f46880663475f46
Author: remm <[email protected]>
AuthorDate: Thu Feb 4 10:49:42 2021 +0100
Cleanups
---
java/org/apache/tomcat/util/net/NioEndpoint.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java
b/java/org/apache/tomcat/util/net/NioEndpoint.java
index bc552f4..55d7d9e 100644
--- a/java/org/apache/tomcat/util/net/NioEndpoint.java
+++ b/java/org/apache/tomcat/util/net/NioEndpoint.java
@@ -284,12 +284,12 @@ public class NioEndpoint extends
AbstractJsseEndpoint<NioChannel,SocketChannel>
FileAttribute<Set<PosixFilePermission>> attrs =
PosixFilePermissions.asFileAttribute(permissions);
Files.setAttribute(path, attrs.name(), attrs.value());
} else {
- java.io.File file =
Paths.get(getUnixDomainSocketPath()).toFile();
+ java.io.File file = path.toFile();
if (permissions.contains(PosixFilePermission.OTHERS_READ)
&& !file.setReadable(true, false)) {
- log.warn(sm.getString("endpoint.nio.perms.readFail",
path));
+ log.warn(sm.getString("endpoint.nio.perms.readFail",
file.getPath()));
}
if (permissions.contains(PosixFilePermission.OTHERS_WRITE)
&& !file.setWritable(true, false)) {
- log.warn(sm.getString("endpoint.nio.perms.writeFail",
path));
+ log.warn(sm.getString("endpoint.nio.perms.writeFail",
file.getPath()));
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]