From: Michael Tremer Date: Wed, 19 Dec 2012 22:14:01 +0000 (+0100) Subject: tar: Fix gets build problem. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8a7200ecc13669424880ebbbf8c30875c91f86e;p=ipfire-3.x.git tar: Fix gets build problem. --- diff --git a/tar/patches/tar-1.26-stdio.in.patch b/tar/patches/tar-1.26-stdio.in.patch new file mode 100644 index 000000000..a68759254 --- /dev/null +++ b/tar/patches/tar-1.26-stdio.in.patch @@ -0,0 +1,13 @@ +diff -urNp tar-1.26-orig/gnu/stdio.in.h tar-1.26/gnu/stdio.in.h +--- tar-1.26-orig/gnu/stdio.in.h ++++ tar-1.26/gnu/stdio.in.h +@@ -139,7 +139,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + #undef gets ++#if HAVE_RAW_DECL_GETS + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++#endif + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ diff --git a/tar/tar.nm b/tar/tar.nm index b58247768..b260e7e36 100644 --- a/tar/tar.nm +++ b/tar/tar.nm @@ -5,7 +5,7 @@ name = tar version = 1.26 -release = 4 +release = 5 groups = System/Packaging url = http://www.gnu.org/software/tar/