Hello community, here is the log from the commit of package iprutils for openSUSE:Factory checked in at Mon Jan 11 17:36:37 CET 2010. -------- --- iprutils/iprutils.changes 2009-03-10 01:31:50.000000000 +0100 +++ /mounts/work_src_done/STABLE/iprutils/iprutils.changes 2009-10-15 17:21:17.000000000 +0200 @@ -1,0 +2,5 @@ +Wed Oct 14 16:08:32 CEST 2009 - stefan.fent@novell.com + +- add iprutils-close.diff (bnc #543987, bnc #534914) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- iprutils-close.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ iprutils.spec ++++++ --- /var/tmp/diff_new_pack.Lez282/_old 2010-01-11 17:35:53.000000000 +0100 +++ /var/tmp/diff_new_pack.Lez282/_new 2010-01-11 17:35:53.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package iprutils (Version 2.2.13) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,7 +22,7 @@ BuildRequires: ncurses-devel pciutils-devel sysfsutils Summary: Utilities for the IBM Power Linux RAID Adapters Version: 2.2.13 -Release: 3 +Release: 4 License: Common Public License v1.0 Url: http://sourceforge.net/projects/iprdd/ Group: Hardware/Other @@ -34,6 +34,7 @@ Patch1: iprutils.install-man.patch Patch2: iprutils.runlevel.patch Patch3: iprutils-noswab.patch +Patch4: iprutils-close.diff %description Provides a suite of utilities to manage and configure SCSI devices @@ -51,6 +52,7 @@ %patch1 -p1 %patch2 -p1 %patch3 +%patch4 -p1 %build make %{?jobs:-j%jobs} CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses $(IPR_DEFINES)" ++++++ iprutils-close.diff ++++++ Index: iprutils/iprdump.c =================================================================== --- iprutils.orig/iprdump.c +++ iprutils/iprdump.c @@ -139,6 +139,7 @@ static void disable_dump(struct ipr_ioa return; } + close(fd); sysfs_close_class_device(class_device); } Index: iprutils/iprlib.c =================================================================== --- iprutils.orig/iprlib.c +++ iprutils/iprlib.c @@ -7387,15 +7387,16 @@ int ipr_update_ioa_fw(struct ipr_ioa *io tmp = strrchr(image->file, '/'); tmp++; dir = opendir(hotplug_dir); - if (!dir) + if (!dir) { mkdir(hotplug_dir, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); - dir = opendir(hotplug_dir); - if (!dir) { - syslog(LOG_ERR, "Failed to open %s. %m\n", hotplug_dir); - munmap(image_hdr, ucode_stats.st_size); - close(fd); - return -EIO; + dir = opendir(hotplug_dir); + if (!dir) { + syslog(LOG_ERR, "Failed to open %s. %m\n", hotplug_dir); + munmap(image_hdr, ucode_stats.st_size); + close(fd); + return -EIO; + } } closedir(dir); sprintf(ucode_file, "%s/.%s", hotplug_dir, tmp); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org