From 772b50ccdafc6995cb94d9ae8c40a79ecd7bd3afadeb26c56190d1b8a1f14d0a Mon Sep 17 00:00:00 2001 From: Anna Maresova Date: Thu, 10 Dec 2009 14:03:19 +0000 Subject: [PATCH] removed the patch OBS-URL: https://build.opensuse.org/package/show/Base:System/pciutils?expand=0&rev=11 --- pciutils-3.1.4-fclose.patch | 41 ------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 pciutils-3.1.4-fclose.patch diff --git a/pciutils-3.1.4-fclose.patch b/pciutils-3.1.4-fclose.patch deleted file mode 100644 index 39fca81..0000000 --- a/pciutils-3.1.4-fclose.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- lib/dump.c -+++ lib/dump.c -@@ -70,7 +70,10 @@ - { - char *z = strchr(buf, '\n'); - if (!z) -- a->error("dump: line too long or unterminated"); -+ { -+ fclose(f); -+ a->error("dump: line too long or unterminated"); -+ } - *z-- = 0; - if (z >= buf && *z == '\r') - *z-- = 0; -@@ -95,7 +98,10 @@ - sscanf(z, "%x", &j) == 1 && j < 256) - { - if (i >= 4096) -- a->error("dump: At most 4096 bytes of config space are supported"); -+ { -+ fclose(f); -+ a->error("dump: At most 4096 bytes of config space are supported"); -+ } - if (i >= dd->allocated) /* Need to re-allocate the buffer */ - { - dump_alloc_data(dev, 4096); -@@ -111,9 +117,13 @@ - z++; - } - if (*z) -- a->error("dump: Malformed line"); -+ { -+ fclose(f); -+ a->error("dump: Malformed line"); -+ } - } - } -+ fclose(f); - } - - static void