Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17975/src/mal

Modified Files:
        mal_sabaoth.mx 
Log Message:
Updates to the .spec files to be ever so slightly more compatible with
the Fedora packaging guidelines.

Use %configure instead of ./configure.  This implies removing the
--prefix, --bindir, etc. options.  This also implies that the compiler
will be called with -D_FORTIFY_SOURCE=2 which makes that the compiler
is even stricter than before.  So we do that now as well.

Some fixes to get things compiled with -D_FORTIFY_SOURCE=2.  Mostly,
we need to do something with the result of functions such as fwrite,
fread, ftruncate, system.

Added descriptions to all packages.

Created a MonetDB-testing package.

Enabled the MonetDB-SQL-devel package.

When creating the tar balls, remove extraneous execute bits, and don't
include files that are generated by configure (i.e. files for which
there is a corresponding .in file).


Index: mal_sabaoth.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_sabaoth.mx,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- mal_sabaoth.mx      1 Sep 2007 11:39:05 -0000       1.36
+++ mal_sabaoth.mx      5 Sep 2007 17:06:16 -0000       1.37
@@ -183,7 +183,7 @@
 str SABAOTHretreatScenario(int *ret, str *lang) {
        FILE *f;
        str buf = alloca(sizeof(char) * 256);   /* should be enough for now */
-       int len;
+       size_t len;
        str path = alloca(sizeof(char) * (PATHLENGTH + 1));
        str tmp;
        (void)ret;
@@ -215,7 +215,8 @@
                                fflush(tmp);
                                rewind(tmp);
                                len = fread(buf, 1, 256, tmp);
-                               fwrite(buf, 1, len, f);
+                               if (fwrite(buf, 1, len, f) < len)
+                                       throw(IO, "sabaoth.retreatScenario", 
"error while writing");
                                fflush(f);
                                fclose(f);
                                fclose(tmp); /* this should remove it 
automagically */


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to