>From dd0568de429e134871893855f650af4bfeda1f00 Mon Sep 17 00:00:00 2001
From: Giacomo Comes <[email protected]>
Date: Tue, 7 Jun 2016 10:31:28 -0400
Subject: [PATCH] call fclose(infile) after print_progress()
The function print_progress uses the pointer infile.
If fclose is called before print_progress then the build process
can fail to build the files:
doc/C/cde.dti/CDEDOC/dtsearch/CDEDOC.d99
doc/C/cde.dti/CDEDOC/dtsearch/dtsearch.ocf
doc/C/cde.dti/cde.oli
To fix the issue move the call fclose(infile) after print_progress()
---
cde/programs/dtsr/dtsrload.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cde/programs/dtsr/dtsrload.c b/cde/programs/dtsr/dtsrload.c
index abe0b09..703cab0 100644
--- a/cde/programs/dtsr/dtsrload.c
+++ b/cde/programs/dtsr/dtsrload.c
@@ -1263,9 +1263,9 @@ int main (int argc, char *argv[])
} /* end main record loop */
- fclose (infile);
if (need_final_progress_msg)
print_progress ();
+ fclose (infile);
write_dbrec ();
/* If all input records were discarded, complete processing
--
2.1.4
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
cdesktopenv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel