[packages/libuser] - updated to 0.58 - fix format string warnings - removed obsolete patch
baggins
baggins at pld-linux.org
Fri Dec 7 09:12:56 CET 2012
commit 0ee65a83e3af86efa041688884b8d05b0c9c8f8b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Dec 7 09:12:31 2012 +0100
- updated to 0.58
- fix format string warnings
- removed obsolete patch
format-security.patch | 22 ++++++++++++++++++++++
libuser-selinux.patch | 42 ------------------------------------------
libuser.spec | 8 +++++---
3 files changed, 27 insertions(+), 45 deletions(-)
---
diff --git a/libuser.spec b/libuser.spec
index d6c63c1..e421080 100644
--- a/libuser.spec
+++ b/libuser.spec
@@ -7,12 +7,13 @@
Summary: A user and group account administration library
Summary(pl.UTF-8): Biblioteka do administrowania kontami użytkowników i grup
Name: libuser
-Version: 0.57.3
-Release: 3
+Version: 0.58
+Release: 1
License: LGPL v2+
Group: Base
Source0: https://fedorahosted.org/releases/l/i/libuser/%{name}-%{version}.tar.xz
-# Source0-md5: 60f94ca286923cfc0d52932388f87c8e
+# Source0-md5: 1fc3ef3f3a3955b2d78562ff4daed793
+Patch0: format-security.patch
URL: https://fedorahosted.org/libuser/
BuildRequires: cyrus-sasl-devel
BuildRequires: glib2-devel >= 2.0
@@ -81,6 +82,7 @@ i grup.
%prep
%setup -q
+%patch0 -p1
%build
%configure \
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..9216149
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,22 @@
+--- libuser-0.58/modules/files.c~ 2012-11-08 03:25:58.000000000 +0100
++++ libuser-0.58/modules/files.c 2012-12-07 09:10:29.293666410 +0100
+@@ -294,7 +294,7 @@
+ string, &err);
+ if (ret == FALSE) {
+ g_assert(err != NULL);
+- g_warning(lu_strerror(err));
++ g_warning("%s", lu_strerror(err));
+ lu_error_free(&err);
+ }
+ return ret;
+--- libuser-0.58/modules/ldap.c~ 2012-11-08 03:25:58.000000000 +0100
++++ libuser-0.58/modules/ldap.c 2012-12-07 09:11:05.156998479 +0100
+@@ -672,7 +672,7 @@
+ (&value, attr, val, &error);
+ if (ok == FALSE) {
+ g_assert(error != NULL);
+- g_warning(lu_strerror(error));
++ g_warning("%s", lu_strerror(error));
+ lu_error_free(&error);
+ } else {
+ lu_ent_add_current(ent, attr,
diff --git a/libuser-selinux.patch b/libuser-selinux.patch
deleted file mode 100644
index d159453..0000000
--- a/libuser-selinux.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-? build
-Index: ChangeLog
-===================================================================
-RCS file: /usr/local/CVS/libuser/ChangeLog,v
-retrieving revision 1.143
-retrieving revision 1.144
-diff -u -r1.143 -r1.144
---- ChangeLog 25 Oct 2007 06:36:56 -0000 1.143
-+++ ChangeLog 30 Oct 2007 22:23:33 -0000 1.144
-@@ -1,3 +1,8 @@
-+2007-10-30 Miloslav Trmač <mitr at redhat.com>
-+
-+ * lib/util.c (lu_util_fscreate_restore) [WITH_SELINUX]: Fix use of
-+ uninitialized data when SELinux is disabled.
-+
- 2007-10-25 Miloslav Trmač <mitr at redhat.com>
-
- * configure.in: Version 0.56.6.
-Index: lib/util.c
-===================================================================
-RCS file: /usr/local/CVS/libuser/lib/util.c,v
-retrieving revision 1.16
-retrieving revision 1.17
-diff -u -r1.16 -r1.17
---- lib/util.c 25 Oct 2007 05:48:04 -0000 1.16
-+++ lib/util.c 30 Oct 2007 22:23:33 -0000 1.17
-@@ -613,10 +613,11 @@
- void
- lu_util_fscreate_restore(security_context_t ctx)
- {
-- /* Don't check is_selinux_enabled(), we ignore errors anyway */
-- (void)setfscreatecon(ctx);
-- if (ctx)
-- freecon(ctx);
-+ if (is_selinux_enabled() > 0) {
-+ (void)setfscreatecon(ctx);
-+ if (ctx)
-+ freecon(ctx);
-+ }
- }
-
- /* Set fscreate context from context of file. */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libuser.git/commitdiff/0ee65a83e3af86efa041688884b8d05b0c9c8f8b
More information about the pld-cvs-commit
mailing list