summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cms/logging
diff options
context:
space:
mode:
authorvakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-08-17 03:46:30 +0000
committervakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-08-17 03:46:30 +0000
commit4ad7f77b5cfe617884d5058f68723b5b998698a6 (patch)
tree80eab66fd737141383fdc449921e45b7646ac025 /pki/base/common/src/com/netscape/cms/logging
parent03b6fed03047d24d7d31343f3143b7407b796454 (diff)
downloadpki-4ad7f77b5cfe617884d5058f68723b5b998698a6.tar.gz
pki-4ad7f77b5cfe617884d5058f68723b5b998698a6.tar.xz
pki-4ad7f77b5cfe617884d5058f68723b5b998698a6.zip
Bugzilla Bug 620925 - CC: auditor needs to be able to download audit logs in the java subsystems
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1201 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/logging')
-rw-r--r--pki/base/common/src/com/netscape/cms/logging/LogFile.java4
-rw-r--r--pki/base/common/src/com/netscape/cms/logging/RollingLogFile.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/pki/base/common/src/com/netscape/cms/logging/LogFile.java b/pki/base/common/src/com/netscape/cms/logging/LogFile.java
index b5239a8fa..cf2ae1b9f 100644
--- a/pki/base/common/src/com/netscape/cms/logging/LogFile.java
+++ b/pki/base/common/src/com/netscape/cms/logging/LogFile.java
@@ -486,7 +486,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo {
if( !Utils.isNT() ) {
// Always insure that a physical file exists!
Utils.exec( "touch " + mFileName );
- Utils.exec( "chmod 00660 " + mFileName );
+ Utils.exec( "chmod 00640 " + mFileName );
}
mFile = new File(mFileName);
mBufferSize = bufferSize;
@@ -729,7 +729,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo {
mBytesWritten = (int) out.length();
if( !Utils.isNT() ) {
try {
- Utils.exec( "chmod 00660 " + mFile.getCanonicalPath() );
+ Utils.exec( "chmod 00640 " + mFile.getCanonicalPath() );
} catch( IOException e ) {
CMS.debug( "Unable to change file permissions on "
+ mFile.toString() );
diff --git a/pki/base/common/src/com/netscape/cms/logging/RollingLogFile.java b/pki/base/common/src/com/netscape/cms/logging/RollingLogFile.java
index 964225181..97dbadf3d 100644
--- a/pki/base/common/src/com/netscape/cms/logging/RollingLogFile.java
+++ b/pki/base/common/src/com/netscape/cms/logging/RollingLogFile.java
@@ -234,7 +234,7 @@ public class RollingLogFile extends LogFile {
// Make certain that the backup file has
// the correct permissions.
if( !Utils.isNT() ) {
- Utils.exec( "chmod 00660 " + backupFile.getCanonicalPath() );
+ Utils.exec( "chmod 00640 " + backupFile.getCanonicalPath() );
}
try {
@@ -246,7 +246,7 @@ public class RollingLogFile extends LogFile {
// Make certain that the original file retains
// the correct permissions.
if( !Utils.isNT() ) {
- Utils.exec( "chmod 00660 " + mFile.getCanonicalPath() );
+ Utils.exec( "chmod 00640 " + mFile.getCanonicalPath() );
}
} catch ( FileNotFoundException e ) {
CMS.debug( "Unable to zeroize "