summaryrefslogtreecommitdiffstats
path: root/system/cpulimit/patches
diff options
context:
space:
mode:
author Menno Duursma <druiloor@zonnet.nl>2010-05-13 01:00:43 +0200
committer Robby Workman <rworkman@slackbuilds.org>2010-05-13 01:00:43 +0200
commitcf8a43d527c17d7ff0a04bc6e6554c420c82751c (patch)
treed613459003acd3a2ffe84d9f58fcb2a8ebe70499 /system/cpulimit/patches
parentc52ae73dea9c2717364e6847b5707c60e0cef7c3 (diff)
downloadslackbuilds-cf8a43d527c17d7ff0a04bc6e6554c420c82751c.tar.gz
slackbuilds-cf8a43d527c17d7ff0a04bc6e6554c420c82751c.tar.xz
system/cpulimit: Added to 13.0 repository
Diffstat (limited to 'system/cpulimit/patches')
-rw-r--r--system/cpulimit/patches/02_segfault_longoptions.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/system/cpulimit/patches/02_segfault_longoptions.patch b/system/cpulimit/patches/02_segfault_longoptions.patch
new file mode 100644
index 0000000000..ee21484817
--- /dev/null
+++ b/system/cpulimit/patches/02_segfault_longoptions.patch
@@ -0,0 +1,27 @@
+Author: Cesare Tirabassi <norsetto@ubuntu.com>
+Description: Fix long options list of arguments.
+Bugs: #487233, #487236, LP #241538
+
+--- cpulimit-1.1.orig/cpulimit.c
++++ cpulimit-1.1/cpulimit.c
+@@ -360,13 +360,13 @@
+ const char* short_options="p:e:P:l:vzh";
+ /* An array describing valid long options. */
+ const struct option long_options[] = {
+- { "pid", 0, NULL, 'p' },
+- { "exe", 1, NULL, 'e' },
+- { "path", 0, NULL, 'P' },
+- { "limit", 0, NULL, 'l' },
+- { "verbose", 0, NULL, 'v' },
+- { "lazy", 0, NULL, 'z' },
+- { "help", 0, NULL, 'h' },
++ { "pid", required_argument, NULL, 'p' },
++ { "exe", required_argument, NULL, 'e' },
++ { "path", required_argument, NULL, 'P' },
++ { "limit", required_argument, NULL, 'l' },
++ { "verbose", no_argument, NULL, 'v' },
++ { "lazy", no_argument, NULL, 'z' },
++ { "help", no_argument, NULL, 'h' },
+ { NULL, 0, NULL, 0 }
+ };
+ //argument variables