[packages/libggi] - rel 8; format fixes
arekm
arekm at pld-linux.org
Sat Dec 5 22:52:40 CET 2015
commit 8d389a416d044fa10e5f8746fb632b58120fb5ad
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Dec 5 22:52:36 2015 +0100
- rel 8; format fixes
libggi-security.patch | 20 ++++++++++++++++++++
libggi.spec | 4 +++-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/libggi.spec b/libggi.spec
index d353a77..91f557b 100644
--- a/libggi.spec
+++ b/libggi.spec
@@ -11,7 +11,7 @@ Summary: GGI - Generic Graphics Interface
Summary(pl.UTF-8): GGI - Generic Graphics Interface
Name: libggi
Version: 2.2.2
-Release: 7
+Release: 8
Epoch: 1
License: BSD-like
Group: Libraries
@@ -22,6 +22,7 @@ Patch1: ac.patch
Patch2: link.patch
Patch3: %{name}-directfb.patch
Patch4: %{name}-glide.patch
+Patch5: %{name}-security.patch
URL: http://www.ggi-project.org/
%{?with_directfb:BuildRequires: DirectFB-devel >= 1.4.15}
%{?with_glide:BuildRequires: Glide2x-devel}
@@ -179,6 +180,7 @@ Statyczna biblioteka libggi.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{__rm} acinclude.m4 m4/{libtool,lt*}.m4
diff --git a/libggi-security.patch b/libggi-security.patch
new file mode 100644
index 0000000..4b1aab1
--- /dev/null
+++ b/libggi-security.patch
@@ -0,0 +1,20 @@
+--- libggi-2.2.2/display/linvtsw/visual.c~ 2005-07-30 13:38:51.000000000 +0200
++++ libggi-2.2.2/display/linvtsw/visual.c 2015-12-05 22:41:47.692439694 +0100
+@@ -316,7 +316,7 @@ vtswitch_open(ggi_visual *vis)
+ close(fd);
+ fd = open("/dev/console", O_WRONLY);
+ if (fd < 0) {
+- fprintf(stderr, nopermstring);
++ fprintf(stderr, "%s", nopermstring);
+ return GGI_ENODEVICE;
+ }
+ if ((vthandling.vtnum = get_newcons(fd)) < 0) {
+@@ -394,7 +394,7 @@ vtswitch_open(ggi_visual *vis)
+ origvtnum = vt_state.v_active;
+ if (vthandling.vtnum != vt_state.v_active) {
+ if (ioctl(vtfd, VT_ACTIVATE, vthandling.vtnum)) {
+- fprintf(stderr, nopermstring);
++ fprintf(stderr, "%s", nopermstring);
+ close(vtfd);
+ vtfd = -1;
+ return GGI_ENODEVICE;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libggi.git/commitdiff/8d389a416d044fa10e5f8746fb632b58120fb5ad
More information about the pld-cvs-commit
mailing list