Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-776

ldapmodify with a non-existing file exits with wrong return code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.0
    • Component/s: tools
    • Labels:

      Description

      Specifying a invalid file (non-existing) to the ldapmodify command produce the following error:
      $ ./ldapmodify -D "cn=myself" -w password -f invalid_file
      An error occurred while attempting to open the LDIF file bad for reading: bad
      (No such file or directory)
      $ echo $?
      1

      => the exit code should be 89 (Parameter Error)

        Attachments

          Activity

            People

            Assignee:
            matthew Matthew Swift
            Reporter:
            csovant Christophe Sovant
            QA Assignee:
            Christophe Sovant Christophe Sovant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: