From: gregor herrmann Date: Fri, 20 Jun 2008 13:39:30 +0000 (-0000) Subject: Add patch 02_segfault_longoptions.patch; fixes segfault with long X-Git-Tag: debian/1.1-11~4 X-Git-Url: http://git.toastfreeware.priv.at/debian/cpulimit.git/commitdiff_plain/9aab63d42ef815d6f49a55f3d256682f9d20ad6e?ds=inline Add patch 02_segfault_longoptions.patch; fixes segfault with long "--limit" option (closes: #487233, LP: #241538). Thanks to Daniel van Eeden for reporting the problem. --- diff --git a/debian/changelog b/debian/changelog index 8ed0f8c..28d8d94 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,9 @@ cpulimit (1.1-11) unstable; urgency=low * debian/rules: remove configure and configure-stamp targets. * Switch patch system from dpatch to quilt. * debian/control: change my email address. + * Add patch 02_segfault_longoptions.patch; fixes segfault with long + "--limit" option (closes: #487233, LP: #241538). Thanks to Daniel van + Eeden for reporting the problem. -- gregor herrmann Thu, 13 Mar 2008 23:57:20 +0100 diff --git a/debian/patches/02_segfault_longoptions.patch b/debian/patches/02_segfault_longoptions.patch new file mode 100644 index 0000000..9f9863a --- /dev/null +++ b/debian/patches/02_segfault_longoptions.patch @@ -0,0 +1,15 @@ +Author: gregor herrmann +Description: make "limit" a required_argument; fixes segfault +Bug: #487233 + +--- cpulimit-1.1.orig/cpulimit.c ++++ cpulimit-1.1/cpulimit.c +@@ -363,7 +363,7 @@ + { "pid", 0, NULL, 'p' }, + { "exe", 1, NULL, 'e' }, + { "path", 0, NULL, 'P' }, +- { "limit", 0, NULL, 'l' }, ++ { "limit", 1, NULL, 'l' }, + { "verbose", 0, NULL, 'v' }, + { "lazy", 0, NULL, 'z' }, + { "help", 0, NULL, 'h' }, diff --git a/debian/patches/series b/debian/patches/series index 42e9712..5bd1458 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 01_priority.patch +02_segfault_longoptions.patch