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

neil_a_wilson
09.35.2006 995c245e96fa2b7de586be4515f8017adeb04222
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPCompare.java
@@ -545,8 +545,17 @@
        }
      } else if(nextChar == '<')
      {
        String filePath = remainder.substring(1, remainder.length());
        attributeVal = LDAPToolUtils.readBytesFromFile(filePath);
        try
        {
          String filePath = remainder.substring(1, remainder.length());
          attributeVal = LDAPToolUtils.readBytesFromFile(filePath);
        }
        catch (Exception e)
        {
          int msgID = MSGID_COMPARE_CANNOT_READ_ASSERTION_VALUE_FROM_FILE;
          err.println(getMessage(msgID, String.valueOf(e)));
          return 1;
        }
      } else
      {
        attributeVal = remainder.getBytes();