Hello community,

here is the log from the commit of package util-linux for openSUSE:Factory
checked in at Tue Sep 13 12:39:11 CEST 2011.



--------
--- util-linux/util-linux.changes       2011-08-30 10:23:28.000000000 +0200
+++ /mounts/work_src_done/STABLE/util-linux/util-linux.changes  2011-09-13 
11:13:49.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Sep 13 09:10:43 UTC 2011 - [email protected]
+
+- add util-linux-lib-sysfs-deinit.patch (bnc#714151) 
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  util-linux-lib-sysfs-deinit.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ util-linux.spec ++++++
--- /var/tmp/diff_new_pack.5Qx1FZ/_old  2011-09-13 12:39:05.000000000 +0200
+++ /var/tmp/diff_new_pack.5Qx1FZ/_new  2011-09-13 12:39:05.000000000 +0200
@@ -31,7 +31,7 @@
 BuildRequires:  readline-devel
 BuildRequires:  zlib-devel
 Version:        2.20
-Release:        1
+Release:        4
 # util-linux is a base package and uuidd pre-requiring pwdutils pulls
 # that into the core build cycle.  pwdutils also pulls in the whole
 # ldap stack into it.  Avoid this whole mess which is done only to
@@ -87,6 +87,7 @@
 # crypto patch
 Patch2:         util-linux-2.17.1-mount_losetup_crypto.patch
 Patch3:         util-linux-sfdisk-manpage-fix.patch
+Patch4:         util-linux-lib-sysfs-deinit.patch
 
 ##
 ## adjtimex
@@ -189,6 +190,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 #
 cd adjtimex-*

++++++ util-linux-lib-sysfs-deinit.patch ++++++
>From cf06399d6aeb1e558baf2b46b617496ed7aac81c Mon Sep 17 00:00:00 2001
From: Petr Uzel <[email protected]>
Date: Mon, 12 Sep 2011 16:11:41 +0200
Subject: [PATCH] lib: do not attempt to close(0) in sysfs_deinit()

If the 'open' fails we 'goto err' which runs 'sysfs_deinit()' on a 'cxt'
which hasn't been fully initialised. The 'dir_fd' is still 0, so
sysfs_deinit calls "close(0)".

Addresses: https://bugzilla.novell.com/show_bug.cgi?id=714151
Reported-by: Diego Ercolani <[email protected]>
Analysed-by: Neil Brown <[email protected]>
Signed-off-by: Petr Uzel <[email protected]>
---
 lib/sysfs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Index: util-linux-2.20/lib/sysfs.c
===================================================================
--- util-linux-2.20.orig/lib/sysfs.c
+++ util-linux-2.20/lib/sysfs.c
@@ -140,6 +140,7 @@ int sysfs_init(struct sysfs_cxt *cxt, de
        int fd, rc = 0;
 
        memset(cxt, 0, sizeof(*cxt));
+       cxt->dir_fd = -1;
 
        if (!sysfs_devno_path(devno, path, sizeof(path)))
                goto err;

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to