Changeset 373fce2


Ignore:
Timestamp:
Oct 7, 2010 3:13:54 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
86a7d68
Parents:
8ac5d5d
Message:

change perms on append too

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/SecureFileOutputStream.java

    r8ac5d5d r373fce2  
    3131    public SecureFileOutputStream(String file, boolean append) throws FileNotFoundException {
    3232        super(file, append);
    33         if (!append)
     33        //if (!append)
    3434            setPerms(new File(file));
    3535    }
     
    4949    public SecureFileOutputStream(File file, boolean append) throws FileNotFoundException {
    5050        super(file, append);
    51         if (!append)
     51        //if (!append)
    5252            setPerms(file);
    5353    }
  • router/java/src/net/i2p/router/RouterLaunch.java

    r8ac5d5d r373fce2  
    22
    33import java.io.File;
    4 import java.io.FileOutputStream;
    54import java.io.IOException;
    65import java.io.PrintStream;
     6
     7import net.i2p.util.SecureFileOutputStream;
    78
    89/**
     
    3435        System.setProperty(PROP_WRAPPER_LOG, logfile.getAbsolutePath());
    3536        try {
    36             System.setOut(new PrintStream(new FileOutputStream(logfile, true)));
     37            System.setOut(new PrintStream(new SecureFileOutputStream(logfile, true)));
    3738        } catch (IOException ioe) {
    3839            ioe.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.