]> git.pld-linux.org Git - packages/libuser.git/commitdiff
- updated to 0.58 auto/th/libuser-0.58-1
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 7 Dec 2012 08:12:31 +0000 (09:12 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 7 Dec 2012 08:12:31 +0000 (09:12 +0100)
- fix format string warnings
- removed obsolete patch

format-security.patch [new file with mode: 0644]
libuser-selinux.patch [deleted file]
libuser.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..9216149
--- /dev/null
@@ -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 (file)
index d159453..0000000
+++ /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@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@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. */
index d6c63c182b34ca42b08209f3a3df85348400e234..e42108080d26b5377addf2b7d762b6cae65c3943 100644 (file)
@@ -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 \
This page took 0.142675 seconds and 4 git commands to generate.