ipmitool/sdradd_close_file_handle.patch

12 lines
419 B
Diff

diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-ipmitool-1.8.13/lib/ipmi_sdradd.c ./lib/ipmi_sdradd.c
--- ../orig-ipmitool-1.8.13/lib/ipmi_sdradd.c 2013-10-04 09:06:38.279805998 +0200
+++ ./lib/ipmi_sdradd.c 2013-10-04 09:08:04.979355617 +0200
@@ -634,6 +634,7 @@
queue->tail->next = sdrr;
queue->tail = sdrr;
}
+ close(fd);
return rc;
}