/* global variables */
char * __progname;
-/*char rcfilename[80];*/
#ifndef USE_SQLITE3
int f_num = 0;
}
else
waitpid(editor, NULL, 0);
-
+
refresh ();
}
}
fl.l_type = F_UNLCK;
-
+
freefile ();
readfile (1);
break;
case 'q':
return 0;
- /* endwin ();
- graceful_exit(0);*/
- /* break; */
case 'r':
if (!loggedin && globalconfig.allow_registration)
newuser ();
fprintf(stderr, "warning: using %s\n", argv[optind]);
free(config);
}
-
+
config = strdup(optarg);
break;
-
+
default:
break; /*ignore */
}
}
-
+
while (optind < argc)
{
size_t len = strlen(argv[optind]);
myconfig[userchoice]->bin_args[i] = tmp;
}
- /*
- if (myconfig[userchoice]->mkdir) {
- tmp = strdup(dgl_format_str(userchoice, me, myconfig[userchoice]->mkdir));
- free(myconfig[userchoice]->mkdir);
- myconfig[userchoice]->mkdir = tmp;
- }
- */
-
- /*
- if (myconfig[userchoice]->chdir) {
- tmp = strdup(dgl_format_str(userchoice, me, myconfig[userchoice]->chdir));
- free(myconfig[userchoice]->chdir);
- myconfig[userchoice]->chdir = tmp;
- }
- */
-
/* launch program */
ttyrec_main (userchoice, me->username, gen_ttyrec_filename());