From: Jan Rękorajski Date: Wed, 21 Nov 2012 13:06:15 +0000 (+0100) Subject: - fix undeclared gets() X-Git-Tag: auto/th/amanda-3.3.2-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Famanda.git;a=commitdiff_plain;h=158a8a0c9fcdae46a0190fda8250fc20a143f74d - fix undeclared gets() --- diff --git a/amanda-stdio.patch b/amanda-stdio.patch new file mode 100644 index 0000000..5b5cf75 --- /dev/null +++ b/amanda-stdio.patch @@ -0,0 +1,15 @@ +diff --git a/gnulib/stdio.in.h b/gnulib/stdio.in.h +index 80b9dbf..dc2dc9a 100644 +--- a/gnulib/stdio.in.h ++++ b/gnulib/stdio.in.h +@@ -140,8 +140,8 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " + /* 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"); ++//#undef gets ++//_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ diff --git a/amanda.spec b/amanda.spec index f1db31d..66db792 100644 --- a/amanda.spec +++ b/amanda.spec @@ -39,6 +39,7 @@ Patch8: %{name}-heimdal.patch Patch9: %{name}-ac.patch Patch11: %{name}-amstar-exclude-fix.patch Patch12: %{name}-krb5-auth.patch +Patch13: %{name}-stdio.patch Patch14: %{name}-amstar-device.patch URL: http://www.amanda.org/ BuildRequires: autoconf >= 2.53 @@ -211,6 +212,7 @@ typu streamer). %patch9 -p1 %patch11 -p1 %patch12 -p1 +%patch13 -p1 %patch14 -p1 cp -a %{SOURCE10} .