From faacf5525bef7140f67293125537a9f31ffd25a5 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 19 Feb 2025 19:44:17 +0100 Subject: Fix wrong exit codes --- plugins-scripts/check_sensors.sh | 1 - plugins/negate.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) mode change 100755 => 100644 plugins-scripts/check_sensors.sh diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh old mode 100755 new mode 100644 index 866e0e0f..ba3581b1 --- a/plugins-scripts/check_sensors.sh +++ b/plugins-scripts/check_sensors.sh @@ -20,7 +20,6 @@ print_help() { echo "This plugin checks hardware status using the lm_sensors package." echo "" support - exit "$STATE_OK" } case "$1" in diff --git a/plugins/negate.c b/plugins/negate.c index 7e52fe67..750c0bfb 100644 --- a/plugins/negate.c +++ b/plugins/negate.c @@ -133,11 +133,11 @@ static const char **process_arguments(int argc, char **argv) { break; case 'h': /* help */ print_help(); - exit(EXIT_SUCCESS); + exit(STATE_UNKNOWN); break; case 'V': /* version */ print_revision(progname, NP_VERSION); - exit(EXIT_SUCCESS); + exit(STATE_UNKNOWN); case 't': /* timeout period */ if (!is_integer(optarg)) usage2(_("Timeout interval must be a positive integer"), optarg); -- cgit v1.2.3-74-g34f1