Accepting request 133552 from editors

Undo weird webui doodle...  (forwarded request 133551 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/133552
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/emacs?expand=0&rev=82
This commit is contained in:
Stephan Kulow 2012-09-11 07:05:38 +00:00 committed by Git OBS Bridge
commit 46b32f1875
3 changed files with 21 additions and 0 deletions

13
emacs-24.1-gets.patch Normal file
View File

@ -0,0 +1,13 @@
--- emacs-24.1/lib/stdio.in.h.old 2012-09-10 11:22:57.405938628 +0200
+++ emacs-24.1/lib/stdio.in.h 2012-09-10 11:24:01.071262324 +0200
@@ -715,8 +715,10 @@
/* 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. */
+#if HAVE_RAW_DECL_GETS
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
+#endif
#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 10 09:25:05 UTC 2012 - aj@suse.de
- Add emacs-24.1-gets.patch to check whether gets is declared
before warning about it (needed by glibc 2.16).
-------------------------------------------------------------------
Thu Jul 26 07:39:27 UTC 2012 - werner@suse.de

View File

@ -95,6 +95,7 @@ Patch16: emacs-23.1-flyspell.patch
Patch22: emacs-24.1-bnc628268.patch
Patch23: emacs-24.1-xevent.patch
Patch24: emacs-24.1-xgselect.patch
Patch25: emacs-24.1-gets.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global bug_345669 0
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
@ -203,6 +204,7 @@ fi
%patch22
%patch23
%patch24
%patch25 -p1
%if 0%{?suse_version} < 1130
%patch1
%endif