Add patch 02_segfault_longoptions.patch; fixes segfault with long
authorgregor herrmann <gregoa@debian.org>
Fri, 20 Jun 2008 13:39:30 +0000 (13:39 -0000)
committergregor herrmann <gregoa@debian.org>
Fri, 20 Jun 2008 13:39:30 +0000 (13:39 -0000)
"--limit" option (closes: #487233, LP: #241538). Thanks to Daniel van
Eeden for reporting the problem.

debian/changelog
debian/patches/02_segfault_longoptions.patch [new file with mode: 0644]
debian/patches/series

index 8ed0f8cee4c553fe68f55141f8bc6ff650caf5ac..28d8d942c315ea12e56c1448103c5a8308496b00 100644 (file)
@@ -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 <gregor+debian@comodo.priv.at>  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 (file)
index 0000000..9f9863a
--- /dev/null
@@ -0,0 +1,15 @@
+Author: gregor herrmann <gregoa@debian.org>
+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' },
index 42e9712e7d5699ace935345ac4fdc6826036419e..5bd1458eacac37e9539f14d844855e376075ecae 100644 (file)
@@ -1 +1,2 @@
 01_priority.patch
+02_segfault_longoptions.patch