summary refs log tree commit diff
path: root/pkgs/tools/networking/mailutils/no-gets.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/mailutils/no-gets.patch')
-rw-r--r--pkgs/tools/networking/mailutils/no-gets.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/tools/networking/mailutils/no-gets.patch b/pkgs/tools/networking/mailutils/no-gets.patch
new file mode 100644
index 000000000000..d72fa3f056cc
--- /dev/null
+++ b/pkgs/tools/networking/mailutils/no-gets.patch
@@ -0,0 +1,14 @@
+--- a/lib/stdio.in.h
++++ b/lib/stdio.in.h
+@@ -138,8 +138,10 @@
+ /* It is very rare that the developer ever has full control of stdin,
+    so any use of gets warrants an unconditional warning.  Assume it is
+    always declared, since it is required by C89.  */
+-#undef gets
++#ifdef gets
++# undef gets
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++#endif
+ 
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@