[packages/amanda] - fix undeclared gets()
baggins
baggins at pld-linux.org
Wed Nov 21 14:06:33 CET 2012
commit 158a8a0c9fcdae46a0190fda8250fc20a143f74d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Nov 21 14:06:15 2012 +0100
- fix undeclared gets()
amanda-stdio.patch | 15 +++++++++++++++
amanda.spec | 2 ++
2 files changed, 17 insertions(+)
---
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} .
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@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/amanda.git/commitdiff/158a8a0c9fcdae46a0190fda8250fc20a143f74d
More information about the pld-cvs-commit
mailing list