diff --git a/debian/changelog b/debian/changelog index 2fe579c..5671808 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ nagios-plugins (1.4.11-2) UNRELEASED; urgency=low [ Jan Wagner ] * Remove Build-depends on libsnmp*-dev since it's not needed anymore (Closes: #429778) + * fix check_disk --local by adding 31_check_disk_local_option.dpatch + (Closes: #405537) -- sean finney Sat, 26 Jan 2008 15:08:03 +0100 diff --git a/debian/patches/00list b/debian/patches/00list index fe7c658..b1d7c79 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -8,4 +8,5 @@ 28_check_pgsql_include_for_8.3.dpatch 29_check_ntp_fixsefault_deprecate.dpatch 30_fix_check_ntp_options.dpatch +31_check_disk_local_option.dpatch 50_misc_typos.dpatch diff --git a/debian/patches/31_check_disk_local_option.dpatch b/debian/patches/31_check_disk_local_option.dpatch new file mode 100644 index 0000000..264e79f --- /dev/null +++ b/debian/patches/31_check_disk_local_option.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 31_check_disk_local_option.dpatch by Jan Wagner +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix local option for check_disk + +@DPATCH@ +diff -Nur nagios-plugins-1.4.11/plugins/check_disk.c.orig nagios-plugins-1.4.11/plugins/check_disk.c +--- nagios-plugins-1.4.11/plugins/check_disk.c.orig 2007-12-08 17:34:05.000000000 +0100 ++++ nagios-plugins-1.4.11/plugins/check_disk.c 2008-02-05 22:13:43.397159697 +0100 +@@ -475,7 +475,7 @@ + {"iwarning", required_argument, 0, 'W'}, + /* Dang, -C is taken. We might want to reshuffle this. */ + {"icritical", required_argument, 0, 'K'}, +- {"local", required_argument, 0, 'l'}, ++ {"local", no_argument, 0, 'l'}, + {"stat-remote-fs", required_argument, 0, 'L'}, + {"kilobytes", required_argument, 0, 'k'}, + {"megabytes", required_argument, 0, 'm'},