mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Fabio Pistolesi
28.01.2015 8b6a544a11dee1f1b77151fb532fb1f06a7bbea6
opendj-server-legacy/src/main/java/org/opends/server/admin/AdministrationConnector.java
@@ -571,23 +571,20 @@
      }
      // Change the password file permission if possible
      if (FilePermission.canSetPermissions())
      try
      {
        try
        {
          if (!FilePermission.setPermissions(new File(pinFilePath),
              new FilePermission(0600)))
          {
            // Log a warning that the permissions were not set.
            logger.warn(WARN_ADMIN_SET_PERMISSIONS_FAILED, pinFilePath);
          }
        }
        catch (DirectoryException e)
        if (!FilePermission.setPermissions(new File(pinFilePath),
            new FilePermission(0600)))
        {
          // Log a warning that the permissions were not set.
          logger.warn(WARN_ADMIN_SET_PERMISSIONS_FAILED, pinFilePath);
        }
      }
      catch (DirectoryException e)
      {
        // Log a warning that the permissions were not set.
        logger.warn(WARN_ADMIN_SET_PERMISSIONS_FAILED, pinFilePath);
      }
      // Delete the exported certificate
      File f = new File(tempCertPath);