summaryrefslogtreecommitdiffstats
path: root/network/siege/siege-verbosity.patch
diff options
context:
space:
mode:
author Heinz Wiesinger <pprkut@slackbuilds.org>2021-09-11 15:19:28 +0200
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2021-09-16 00:45:35 +0700
commitfd6fc0dc26bbff08fecc27fb548c0fd01c7d29d1 (patch)
tree56194a0fe29bcd1761641685911f230236651332 /network/siege/siege-verbosity.patch
parent4d9e8b20f4e8aa1f6cd8eb83697895f56ee07089 (diff)
downloadslackbuilds-fd6fc0dc26bbff08fecc27fb548c0fd01c7d29d1.tar.gz
slackbuilds-fd6fc0dc26bbff08fecc27fb548c0fd01c7d29d1.tar.xz
network/siege: Updated for version 4.1.1
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/siege/siege-verbosity.patch')
-rw-r--r--network/siege/siege-verbosity.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/network/siege/siege-verbosity.patch b/network/siege/siege-verbosity.patch
new file mode 100644
index 0000000000..fec188f1b2
--- /dev/null
+++ b/network/siege/siege-verbosity.patch
@@ -0,0 +1,28 @@
+From b7900fbc0e929f2f340a44ed2881018a29a9a86f Mon Sep 17 00:00:00 2001
+From: Josue Abarca <jmaslibre@gmail.com>
+Date: Sun, 9 Aug 2020 15:48:15 -0600
+Subject: [PATCH] Allow the command line verbose option to override the
+ configuration file
+
+Since the default configuration file has json_output set to true and
+the json_output monopolizes stdout, superceding verbose, this change
+allows the user to activate the verbose mode using the command line
+parameter even when json_output is set to true in the configuration
+file.
+---
+ src/main.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/main.c b/src/main.c
+index 4bad685..2541cee 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -256,6 +256,8 @@ parse_cmdline(int argc, char *argv[])
+ break;
+ case 'v':
+ my.verbose = TRUE;
++ my.json_output = FALSE;
++ my.quiet = FALSE;
+ break;
+ case 'r':
+ if(strmatch(optarg, "once")){