summary refs log tree commit diff
path: root/pkgs/tools/networking/nttcp/format-security.patch
diff options
context:
space:
mode:
authorAngus Trau <me@angus.ws>2021-07-25 16:00:04 +1000
committerAngus Trau <me@angus.ws>2021-07-25 16:00:04 +1000
commit63fbf319d2b8cd931dd4ca4ecf1e1f811754876a (patch)
treeaddc1fcd762b6edce857483e10ed03a2bffc6a2a /pkgs/tools/networking/nttcp/format-security.patch
parent2129356a6405cc342e860d87623d3823e8ee3b8c (diff)
downloadnixpkgs-63fbf319d2b8cd931dd4ca4ecf1e1f811754876a.tar
nixpkgs-63fbf319d2b8cd931dd4ca4ecf1e1f811754876a.tar.gz
nixpkgs-63fbf319d2b8cd931dd4ca4ecf1e1f811754876a.tar.bz2
nixpkgs-63fbf319d2b8cd931dd4ca4ecf1e1f811754876a.tar.lz
nixpkgs-63fbf319d2b8cd931dd4ca4ecf1e1f811754876a.tar.xz
nixpkgs-63fbf319d2b8cd931dd4ca4ecf1e1f811754876a.tar.zst
nixpkgs-63fbf319d2b8cd931dd4ca4ecf1e1f811754876a.zip
nttcp: init at 1.47
Diffstat (limited to 'pkgs/tools/networking/nttcp/format-security.patch')
-rw-r--r--pkgs/tools/networking/nttcp/format-security.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/tools/networking/nttcp/format-security.patch b/pkgs/tools/networking/nttcp/format-security.patch
new file mode 100644
index 00000000000..f0a60457768
--- /dev/null
+++ b/pkgs/tools/networking/nttcp/format-security.patch
@@ -0,0 +1,12 @@
+diff -Nur -x '*.orig' -x '*~' nttcp-1.47/nttcp.c nttcp-1.47.new/nttcp.c
+--- nttcp-1.47/nttcp.c	2000-12-18 05:16:54.000000000 -0500
++++ nttcp-1.47.new/nttcp.c	2012-01-30 23:44:02.260501225 -0500
+@@ -372,7 +372,7 @@
+ #define Message(x)	fMessage(stdout, x)
+ 
+ void Exit(char *s, int ret) {
+-    syslog(LOG_DEBUG, s);
++    syslog(LOG_DEBUG, "%s", s);
+     fMessage(stderr,s);
+     exit(ret);
+ }