Hello community, here is the log from the commit of package dmraid for openSUSE:Factory checked in at Tue Oct 6 00:43:10 CEST 2009. -------- --- dmraid/dmraid.changes 2009-08-24 23:45:41.000000000 +0200 +++ dmraid/dmraid.changes 2009-10-03 15:23:03.000000000 +0200 @@ -1,0 +2,5 @@ +Sat Oct 3 13:21:37 UTC 2009 - crrodriguez@opensuse.org + +- fix directory handle leaks in libdmraid-events [bnc#524202] + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- dmraid-fdleak.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dmraid.spec ++++++ --- /var/tmp/diff_new_pack.1FeVaP/_old 2009-10-06 00:42:57.000000000 +0200 +++ /var/tmp/diff_new_pack.1FeVaP/_new 2009-10-06 00:42:57.000000000 +0200 @@ -28,7 +28,7 @@ AutoReqProv: on Summary: A Device-Mapper Software RAID Support Tool Version: 1.0.0.rc15 -Release: 7 +Release: 8 Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/dmraid-%{version}.tar.bz2 Source1: sysconfig.dmraid Source2: boot.dmraid @@ -46,6 +46,7 @@ Patch13: dmraid-1.0.0.rc15-isw-raid10.patch Patch14: dmraid-1.0.0.rc15-rm_partitions.patch Patch15: dmraid-1.0.0.rc15-isw-serial.patch +Patch16: dmraid-fdleak.patch Patch500: ARM_libdmraid_ldflags.diff # libdmraid-events Patch50: libdmraid-events.dif @@ -120,6 +121,7 @@ %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 pushd libdmraid* %patch50 %patch500 -p1 ++++++ dmraid-fdleak.patch ++++++ Index: libdmraid-events/libdmraid-events.c =================================================================== --- libdmraid-events/libdmraid-events.c.orig 2008-07-18 23:30:05.000000000 +0200 +++ libdmraid-events/libdmraid-events.c 2009-10-03 14:55:34.000000000 +0200 @@ -180,6 +180,7 @@ static int _repopulate(const char* devic } fscanf(fd, "%s", curr->raid_mem[curr->num_sata_drives].major_minor); fclose(fd); + closedir(dir); curr->raid_mem[curr->num_sata_drives].port_num = atoi(dir_ent[i]->d_name); syslog(LOG_INFO, "Added disk %s (%s) port=%i\n", disk, curr->raid_mem[curr->num_sata_drives].major_minor, curr->raid_mem[curr->num_sata_drives].port_num); @@ -969,6 +970,7 @@ int register_device(const char *device, } fscanf(fd, "%s", rv_next->raid_mem[m].major_minor); fclose(fd); + closedir(dir); rv_next->raid_mem[m].port_num = atoi(dir_ent[j]->d_name); m++; break; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org