summaryrefslogtreecommitdiff
path: root/core/gettext/gnulib-no-gets.patch
diff options
context:
space:
mode:
Diffstat (limited to 'core/gettext/gnulib-no-gets.patch')
-rw-r--r--core/gettext/gnulib-no-gets.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/core/gettext/gnulib-no-gets.patch b/core/gettext/gnulib-no-gets.patch
new file mode 100644
index 000000000..b3cb56479
--- /dev/null
+++ b/core/gettext/gnulib-no-gets.patch
@@ -0,0 +1,48 @@
+diff -ru gettext-0.18.1.1.orig/gettext-runtime/gnulib-lib/stdio.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h
+--- gettext-0.18.1.1.orig/gettext-runtime/gnulib-lib/stdio.in.h 2012-10-21 22:31:11.290124705 +0200
++++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h 2012-10-21 22:31:32.060385194 +0200
+@@ -137,12 +137,6 @@
+ "use gnulib module fflush for portable POSIX compliance");
+ #endif
+
+-/* 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
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+diff -ru gettext-0.18.1.1.orig/gettext-tools/gnulib-lib/stdio.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h
+--- gettext-0.18.1.1.orig/gettext-tools/gnulib-lib/stdio.in.h 2012-10-21 22:31:09.340394990 +0200
++++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h 2012-10-21 22:31:43.654025009 +0200
+@@ -137,12 +137,6 @@
+ "use gnulib module fflush for portable POSIX compliance");
+ #endif
+
+-/* 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
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+diff -ru gettext-0.18.1.1.orig/gettext-tools/libgettextpo/stdio.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h
+--- gettext-0.18.1.1.orig/gettext-tools/libgettextpo/stdio.in.h 2012-10-21 22:31:11.040365944 +0200
++++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h 2012-10-21 22:31:38.086822069 +0200
+@@ -137,12 +137,6 @@
+ "use gnulib module fflush for portable POSIX compliance");
+ #endif
+
+-/* 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
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ # if !(defined __cplusplus && defined GNULIB_NAMESPACE)