Code Monkey home page Code Monkey logo

Comments (6)

brc0x1 avatar brc0x1 commented on May 29, 2024

Hi Didier, I was surprised to realize the man pages don't document return codes. They absolutely should do this, and I'll fix this in the next release. Until then, here's a quick summary of how things are intended to work:

  • The twadmin, twprint, and siggen commands return 0 on success, and 1 on any error.

  • In tripwire integrity check mode, the return code is a set of bits OR'd together to indicate the check result:
    1: At least one file or directory was added.
    2: At least one file or directory was removed.
    4: At least one file or directory was modified.
    8: At least one error occurred during the check.
    So if an integrity check returns 0, it means the check ran successfully and no changes were observed.

  • Other tripwire modes return 0 on success, and 8 on error, for consistency with IC mode.

Right now there might be an exception or two to these rules; I see one spot in core/msystem.cpp that would exit with -1, but it's right below a comment saying "should never happen ...", and I doubt anyone will bump into it in practice. I think I'll change this and any other exceptions I run across at the same time I update the man pages.

from tripwire-open-source.

didier13150 avatar didier13150 commented on May 29, 2024

thank you brian. Have you a date for the next release ?

from tripwire-open-source.

brc0x1 avatar brc0x1 commented on May 29, 2024

I don't have an exact date, but it will probably be sometime in December or January.

from tripwire-open-source.

brc0x1 avatar brc0x1 commented on May 29, 2024

I've added Exit Code sections to the man pages on this branch: https://github.com/Tripwire/tripwire-open-source/tree/dev/q1-2018 . I have some other documentation stuff to do there before it becomes a 2.4.3.7 release, but I hope to have that wrapped up in the near future.

from tripwire-open-source.

brc0x1 avatar brc0x1 commented on May 29, 2024

Resolved in 2.4.3.7

from tripwire-open-source.

brc0x1 avatar brc0x1 commented on May 29, 2024

Closing as resolved.

from tripwire-open-source.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.