]> git.pld-linux.org Git - packages/libggi.git/commitdiff
- rel 8; format fixes
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 5 Dec 2015 21:52:36 +0000 (22:52 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 5 Dec 2015 21:52:36 +0000 (22:52 +0100)
libggi-security.patch [new file with mode: 0644]
libggi.spec

diff --git a/libggi-security.patch b/libggi-security.patch
new file mode 100644 (file)
index 0000000..4b1aab1
--- /dev/null
@@ -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;
index d353a7777a12fdf7c7e857b1096bff1487b41ff7..91f557b576f908e81da3042f8eb4fef2746a66e4 100644 (file)
@@ -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
 
This page took 0.162203 seconds and 4 git commands to generate.