[packages/lxdm] - fix build with -Werror=format-security

hawk hawk at pld-linux.org
Sun Jul 21 19:58:39 CEST 2013


commit 490a9dd46382f30d85cf2893a7887487859b7b00
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Sun Jul 21 18:11:30 2013 +0000

    - fix build with -Werror=format-security

 lxdm-werror.patch | 12 ++++++++++++
 lxdm.spec         |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/lxdm.spec b/lxdm.spec
index 94d472d..ab1b298 100644
--- a/lxdm.spec
+++ b/lxdm.spec
@@ -1,7 +1,7 @@
 Summary:	Light weight X11 display manager
 Name:		lxdm
 Version:	0.4.1
-Release:	10
+Release:	11
 License:	GPL v3
 Group:		X11/Applications
 Source0:	http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
@@ -13,6 +13,7 @@ Source4:	%{name}.upstart
 Patch0:		%{name}-setuid.patch
 Patch1:		greeter-skip-services.patch
 Patch2:		softlockup.patch
+Patch3:		%{name}-werror.patch
 URL:		http://wiki.lxde.org/en/LXDM
 BuildRequires:	ConsoleKit-devel
 BuildRequires:	gettext-devel
@@ -53,6 +54,7 @@ Skrypt init dla lxdm-a.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 rm -f data/lxdm.conf
diff --git a/lxdm-werror.patch b/lxdm-werror.patch
new file mode 100644
index 0000000..ea9c388
--- /dev/null
+++ b/lxdm-werror.patch
@@ -0,0 +1,12 @@
+diff -ur lxdm-0.4.1.orig/src/ui.c lxdm-0.4.1.fix/src/ui.c
+--- lxdm-0.4.1.orig/src/ui.c	2013-07-19 07:38:38.000000000 +0000
++++ lxdm-0.4.1.fix/src/ui.c	2013-07-19 07:53:15.643067820 +0000
+@@ -146,7 +146,7 @@
+ 	else if( !strncmp(str, "shutdown", 6) )
+ 		lxdm_do_shutdown();
+ 	else if( !strncmp(str, "log ", 4) )
+-		g_message(str + 4);
++		g_message("%s", str + 4);
+ 	else if( !strncmp(str, "login ", 6) )
+ 	{
+ 		char *user = greeter_param(str, "user");
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxdm.git/commitdiff/490a9dd46382f30d85cf2893a7887487859b7b00



More information about the pld-cvs-commit mailing list