Changeset: 40441408f31a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=40441408f31a
Modified Files:
        tools/mserver/mserver5.c
Branch: default
Log Message:

Merge with Feb2013 branch.


diffs (16 lines):

diff --git a/tools/mserver/mserver5.c b/tools/mserver/mserver5.c
--- a/tools/mserver/mserver5.c
+++ b/tools/mserver/mserver5.c
@@ -292,6 +292,12 @@ main(int argc, char **av)
                switch (c) {
                case 0:
                        if (strcmp(long_options[option_index].name, "dbpath") 
== 0) {
+                               size_t optarglen = strlen(optarg);
+                               /* remove trailing directory separator */
+                               while (optarglen > 0 &&
+                                      (optarg[optarglen - 1] == '/' ||
+                                       optarg[optarglen - 1] == '\\'))
+                                       optarg[--optarglen] = '\0';
                                setlen = mo_add_option(&set, setlen, 
opt_cmdline, "gdk_dbpath", optarg);
                                break;
                        }
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to