SHA256
1
0
forked from pool/sed
sed/sed-dont_close_twice.patch
Marcus Meissner 7e87646376 Accepting request 239198 from home:sbrabec:branches:Base:System
- sed-dont_close_twice.patch (bnc#880817)
  when closing fails, file is attempted to be closed again
  patch based of Neil Brown's recommendation

OBS-URL: https://build.opensuse.org/request/show/239198
OBS-URL: https://build.opensuse.org/package/show/Base:System/sed?expand=0&rev=18
2014-07-03 14:56:24 +00:00

17 lines
439 B
Diff

http://lists.gnu.org/archive/html/bug-gnu-utils/2014-06/msg00000.html
Index: sed-4.2.2/sed/utils.c
===================================================================
--- sed-4.2.2.orig/sed/utils.c
+++ sed-4.2.2/sed/utils.c
@@ -298,8 +298,8 @@ ck_fclose(stream)
{
if (!stream || stream == cur->fp)
{
- do_ck_fclose (cur->fp);
prev->link = cur->link;
+ do_ck_fclose (cur->fp);
free(cur->name);
free(cur);
}