liuyunguo created LOG4J2-2828:
---------------------------------

             Summary: RollingRandomAccessFileAppender not using filePermissions
                 Key: LOG4J2-2828
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2828
             Project: Log4j 2
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 2.12.0
            Reporter: liuyunguo


in code:

org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager#createFileAfterRollover()

 

@Override
protected void createFileAfterRollover() throws IOException {
 createFileAfterRollover(getFileName());
}

private void createFileAfterRollover(final String fileName) throws IOException {
 this.randomAccessFile = new RandomAccessFile(fileName, "rw");

{color:#FF0000}*// should use filePermissions*{color}

{color:#FF0000}*defineAttributeView(Paths.get(filename));*{color}
 if (isAppend()) {
 randomAccessFile.seek(randomAccessFile.length());
 }
 writeHeader();
}

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to