Commit d9e8fa9f authored by claes's avatar claes

Open directory db of no volume argument

parent 1c472307
...@@ -435,7 +435,6 @@ int main( int argc, char *argv[]) ...@@ -435,7 +435,6 @@ int main( int argc, char *argv[])
char title[80]; char title[80];
char backdoor[] = {112,108,101,97,115,101,99,108,97,101,115,108,101,116,109,101,105,110,0}; char backdoor[] = {112,108,101,97,115,101,99,108,97,101,115,108,101,116,109,101,105,110,0};
XtAppContext app_ctx; XtAppContext app_ctx;
int sw_ignore_errors = 0;
int sw_projectvolume = 0; int sw_projectvolume = 0;
int i; int i;
...@@ -444,17 +443,19 @@ int main( int argc, char *argv[]) ...@@ -444,17 +443,19 @@ int main( int argc, char *argv[])
strcpy( username, ""); strcpy( username, "");
strcpy( password, ""); strcpy( password, "");
volumename_p = 0;
strcpy( volumename, ""); // Open directory volume as default
volumename_p = volumename;
strcpy( volumename, "directory");
sw_projectvolume = 1;
arg_cnt = 0; arg_cnt = 0;
for ( i = 1; i < argc; i++) { for ( i = 1; i < argc; i++) {
if ( argv[i][0] == '-') { if ( argv[i][0] == '-') {
switch ( argv[i][1]) { switch ( argv[i][1]) {
case 'i': case 'a':
sw_ignore_errors = 1; // Load all volumes
break; sw_projectvolume = 0;
case 'p': volumename_p = 0;
sw_projectvolume = 1;
break; break;
default: default:
printf("Unknown argument: %s\n", argv[i]); printf("Unknown argument: %s\n", argv[i]);
...@@ -470,7 +471,7 @@ int main( int argc, char *argv[]) ...@@ -470,7 +471,7 @@ int main( int argc, char *argv[])
break; break;
case 2: case 2:
strcpy( volumename, argv[i]); strcpy( volumename, argv[i]);
volumename_p = volumename; sw_projectvolume = 0;
break; break;
default: default:
printf("Unknown argument: %s\n", argv[i]); printf("Unknown argument: %s\n", argv[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment