4370fb5a9a3dbf65cb9431f69bfaeb833fb06cfc
[openwrt/openwrt.git] / package / boot / grub2 / patches / 200-fix-gets-removal.patch
1 --- a/grub-core/gnulib/stdio.in.h
2 +++ b/grub-core/gnulib/stdio.in.h
3 @@ -137,12 +137,6 @@
4 "use gnulib module fflush for portable POSIX compliance");
5 #endif
6
7 -/* It is very rare that the developer ever has full control of stdin,
8 - so any use of gets warrants an unconditional warning. Assume it is
9 - always declared, since it is required by C89. */
10 -#undef gets
11 -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
12 -
13 #if @GNULIB_FOPEN@
14 # if @REPLACE_FOPEN@
15 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)