]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
tar: Fix gets build problem.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Dec 2012 22:14:01 +0000 (23:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Dec 2012 22:14:01 +0000 (23:14 +0100)
tar/patches/tar-1.26-stdio.in.patch [new file with mode: 0644]
tar/tar.nm

diff --git a/tar/patches/tar-1.26-stdio.in.patch b/tar/patches/tar-1.26-stdio.in.patch
new file mode 100644 (file)
index 0000000..a687592
--- /dev/null
@@ -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@
index b582477684a4f354abaaaea1eec9af0e1cab78e2..b260e7e36fdd898737703c79f625572eb1fc5a85 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = tar
 version    = 1.26
-release    = 4
+release    = 5
 
 groups     = System/Packaging
 url        = http://www.gnu.org/software/tar/