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

Modified Files:
        monetdb.mx 
Log Message:
Guard agains illegal access to argv


Index: monetdb.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/tools/monetdb.mx,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- monetdb.mx  28 Aug 2007 20:41:04 -0000      1.13
+++ monetdb.mx  29 Aug 2007 05:45:17 -0000      1.14
@@ -451,7 +451,7 @@
                if (strcmp(argv[1], "-m") == 0) {
                        maintenance = 1;
                        dbname = argv[2];
-               } else if (strcmp(argv[2], "-m") == 0) {
+               } else if ( argc==3 && strcmp(argv[2], "-m") == 0) {
                        maintenance = 1;
                        dbname = argv[1];
                } else {


-------------------------------------------------------------------------
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