| | |
| | | import org.opends.server.util.LDIFWriter; |
| | | import org.opends.server.util.StaticUtils; |
| | | import org.opends.server.util.TimeThread; |
| | | import org.opends.server.types.FilePermission; |
| | | |
| | | /** |
| | | * This class defines a simple configuration handler for the Directory Server |
| | |
| | | |
| | | FileInputStream inputStream = new FileInputStream(existingCfg); |
| | | FileOutputStream outputStream = new FileOutputStream(newConfigFile); |
| | | FilePermission.setSafePermissions(newConfigFile, 0600); |
| | | byte[] buffer = new byte[8192]; |
| | | while (true) |
| | | { |
| | |
| | | { |
| | | inputStream = new FileInputStream(configFile); |
| | | outputStream = new GZIPOutputStream(new FileOutputStream(archiveFile)); |
| | | |
| | | FilePermission.setSafePermissions(archiveFile, 0600); |
| | | int bytesRead = inputStream.read(buffer); |
| | | while (bytesRead > 0) |
| | | { |
| | |
| | | try |
| | | { |
| | | outputStream = new FileOutputStream(tempFilePath, false); |
| | | |
| | | FilePermission.setSafePermissions(tempFile, 0600); |
| | | try |
| | | { |
| | | byte[] buffer = new byte[8192]; |