Adding d/p/20_check_apt_unknown_escape_sequence

This commit is contained in:
Jan Wagner 2022-12-27 18:01:01 +00:00
parent f625b1ed77
commit f9e79dedec
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,22 @@
From 28553e8d1cc56de12e4c9f7705a92f0e0e86d9d9 Mon Sep 17 00:00:00 2001
From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com>
Date: Mon, 19 Dec 2022 17:15:49 +0100
Subject: [PATCH] Fix unknown escape sequence error output
---
plugins/check_apt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index d7be57505..f70fec16b 100644
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
@@ -530,7 +530,7 @@ print_help (void)
printf (" %s\n", _("this REGEXP, the plugin will return CRITICAL status. Can be specified"));
printf (" %s\n", _("multiple times like above. Default is a regexp matching security"));
printf (" %s\n", _("upgrades for Debian and Ubuntu:"));
- printf (" \t\%s\n", SECURITY_RE);
+ printf (" \t%s\n", SECURITY_RE);
printf (" %s\n", _("Note that the package must first match the include list before its"));
printf (" %s\n", _("information is compared against the critical list."));
printf (" %s\n", "-o, --only-critical");

View file

@ -8,3 +8,4 @@
17_check_curl_detect_ipv6 17_check_curl_detect_ipv6
18_check_icmp_help 18_check_icmp_help
19_check_disk_fs_usage 19_check_disk_fs_usage
20_check_apt_unknown_escape_sequence