Magellan Linux

Contents of /trunk/tar/patches/tar-1.26-gnulib-gets.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1892 - (show annotations) (download)
Wed Sep 5 12:18:37 2012 UTC (11 years, 7 months ago) by niro
File size: 512 byte(s)
-fix ftbfs with glibc-2.16
1 diff -Naur tar-1.26/gnu/stdio.in.h tar-1.26-magellan/gnu/stdio.in.h
2 --- tar-1.26/gnu/stdio.in.h 2011-03-12 10:14:33.000000000 +0100
3 +++ tar-1.26-magellan/gnu/stdio.in.h 2012-09-05 16:18:10.970983103 +0200
4 @@ -164,7 +164,9 @@
5 so any use of gets warrants an unconditional warning. Assume it is
6 always declared, since it is required by C89. */
7 #undef gets
8 +#if HAVE_RAW_DECL_GETS
9 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
10 +#endif
11
12 #if @GNULIB_FOPEN@
13 # if @REPLACE_FOPEN@