This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new fb63c2c Cleanups fb63c2c is described below commit fb63c2c50e104c6aba3a5481f1fd7fc555df761d Author: remm <r...@apache.org> 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 bc3f2ad..9cbf422 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -227,12 +227,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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org