From 77188532a6e5c252344c2d70797796f3ac0ed985 Mon Sep 17 00:00:00 2001 From: Steve8291 Date: Thu, 20 Jun 2019 08:28:00 -0400 Subject: [PATCH] Change exit status when checking version. Having `chkrootkit -V` exit with an error makes it very difficult to use the command in a script. Unless there is another reason for this then I think changing it should be considered. --- chkrootkit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chkrootkit b/chkrootkit index 025e6e1..e19a531 100755 --- a/chkrootkit +++ b/chkrootkit @@ -2721,7 +2721,7 @@ do -q) QUIET=t;; -V) echo >&2 "chkrootkit version ${CHKROOTKIT_VERSION}" - exit 1;; + exit 0;; -l) echo >&2 "$0: tests: ${TOOLS} ${TROJAN}" exit 1;;