]> git.pld-linux.org Git - packages/amanda.git/commitdiff
- fix undeclared gets()
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 21 Nov 2012 13:06:15 +0000 (14:06 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 21 Nov 2012 13:06:15 +0000 (14:06 +0100)
amanda-stdio.patch [new file with mode: 0644]
amanda.spec

diff --git a/amanda-stdio.patch b/amanda-stdio.patch
new file mode 100644 (file)
index 0000000..5b5cf75
--- /dev/null
@@ -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@
index f1db31d55df5d3c169aff47a94d1d1fb538bbdb0..66db792337e30adf4e419c7c9db3dae1f7d7340f 100644 (file)
@@ -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} .
 
This page took 0.324311 seconds and 4 git commands to generate.