First round of testing for Security complete, now alpha

This commit is contained in:
Admin
2017-03-31 14:57:48 -05:00
parent cd5417c2e0
commit 2f1adf9d4b
7 changed files with 71 additions and 65 deletions

View File

@@ -273,7 +273,8 @@ public class BridgeSettings extends BackupHandler {
perms.add(PosixFilePermission.OWNER_WRITE);
try {
Files.setPosixFilePermissions(filePath, perms);
if(System.getProperty("os.name").toLowerCase().indexOf("win") <= 0)
Files.setPosixFilePermissions(filePath, perms);
} catch(UnsupportedOperationException e) {
log.info("Cannot set permissions for config file on this system as it is not supported. Continuing");
}